Перейти к содержимому

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

CppCon

0:00 / 0:00

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

4 373 просмотра · 1 год назад
CppCon
188 тыс. подписчиков
4 373 просмотра · 1 год назад
https://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: https://github.com/CppCon/CppCon2024/... Work at Hudson River Trading (HRT): https://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 - https://www.cppcon.org   / cppcon   https://x.com/cppcon   / cppconference     / cppcon   https://mastodon.social/@CppCon --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk --- #gamedevelopment #gamedev #gamedeveloper #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #programming #programmer