Using Modern C++ to Build XOffsetDatastructure - Zero-Encoding & Zero-Decoding Serialization Library @CppCon
Using Modern C++ to Build XOffsetDatastructure - Zero-Encoding & Zero-Decoding Serialization Library  @CppCon
Uploaded March 2025 | Updated September 2026, 3 weeks ago
cppcon.org
---

Using Modern C++ to Build XOffsetDatastructure: A Zero-Encoding and Zero-Decoding High-Performance Serialization Library in the Game Industry - Fanchen Su - CppCon 2024
---

XOffsetDatastructure is a serialization library designed to reduce or even eliminate the performance consumption of serialization and deserialization in the game industry 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.

Custom allocators are used to keep fields in contiguous memory, enabling them to be sent directly. Offset pointers are used to maintain pointer validity after buffer resizing and memory movement caused by modifications to variable-size fields. Some other techniques, such as containers that support offset pointers and auto-resizing mechanisms, are involved.

The performance statistics demonstrate that XOffsetDatastructure is a high-performance library, offering advantages in terms of encoding and decoding time, read and write performance, and message size compared to other modern C++ serialization libraries.
---

Slides: github.com/CppCon/CppCon2024/blob/main/Presentations/Using_Modern_Cpp_to_Build_XOffsetDatastructure.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Fanchen Su

Fanchen Su is a game research & development expert and team leader. He has over 20 years of experience in designing, writing, and maintaining C++ code. His main areas of interest and expertise are modern C++, code performance, low latency, and maintainability. He graduated from Wuhan University in 2012 with a Ph.D. in Computer Science.
---

CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#gamedevelopment #gamedev #gamedeveloper #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #programming #programmer
Using Modern C++ to Build XOffsetDatastructure - Zero-Encoding & Zero-Decoding Serialization LibraryA Case-study in Rewriting a Legacy Gui Library for Real-time Audio Software in Modern C++ (Reprise)Upgrading Sea of Thieves From C++14 to C++20 Wasnt Easy Heres Why - Keith Stockdale - CppCon 2025Lightning Talk: Can `set_value` Actually Throw? - Robert Leahy - CppCon 2025Lightning Talk: Saturday Is Coming Faster - Convert year_month_day to Weekday Faster - Part 2C++ Data Structures That Make Video Games Go Round - Al-Afiq Yeong - CppCon 2024Whats New for C++ in VS Code: CMake Improvements and GitHub Copilot Agents - Alexandra KemperCan std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly FanaskovModern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24Lightning Talk: Causal Inference for Code Writing AI - Matt K Robinson - CppCon 2025API Structure and Technique: Learnings from C++ Code Review - Ben Deane - CppCon 2025Networks in C++ - Whats Actually Changing? - Ignas Bagdonas - CppCon 2025
CppCon |

Using Modern C++ to Build XOffsetDatastructure - Zero-Encoding & Zero-Decoding Serialization Library

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER