Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a conference talk from CppCon 2022 that delves into creating a faster serialization library using compile-time reflection and C++20. Learn how this approach outperforms protobuf and msgpack in terms of ease of use and speed, eliminating the need for DSL definitions, macros, and invasive techniques. Discover the key components of this library, including object reflection with C++20, optimized data format parsing, special optimizations for trivially copyable objects, compile-time type hashing for improved binary data size and deserialization safety, and leveraging std::optional for backward compatibility. Gain insights from Yu Qi, an experienced C++ programmer and founder of an open-source community promoting modern C++ in China, as he shares his expertise in distributed systems and serialization techniques.