XOffsetDatastructure
A Modern C++ Zero-Encoding and Zero-Decoding High-Performance Serialization Library
Install / Use
/learn @ximicpp/XOffsetDatastructureREADME
Introduction
XOffsetDatastructure is a serialization library designed to reduce or even eliminate the performance consumption of serialization and deserialization by utilizing zero-encoding and zero-decoding. It is also a collection of high-performance data structures designed for efficient read and in-place/non-in-place write, with performance comparable to STL.
Release Branches
This repository maintains two parallel implementations:
release/v2.0-practical - Recommended
- Reflection: Uses Boost.PFR for compile-time reflection
- Compatibility: C++20 and above
- Stability: Production-ready, thoroughly tested
- Use Case: Recommended for production environments
release/v2.0-cpp26 - Experimental
- Reflection: Uses C++26 native reflection (
std::meta) - Compatibility: Requires C++26 (experimental compiler support)
- Stability: Experimental, cutting-edge technology
- Use Case: For exploring future C++ capabilities
Which version should I use?
For most users, we recommend release/v2.0-practical. It provides all features with proven stability and broad compiler support.
CppCon 2024
CppCon 2025
Benchmarks
Benchmark code and results: see the tag "v1.0.0: CppCon 2024 Milestone Release (Latest)"
