A Faster Serialization Library Based on Compile-time Reflection and C++ 20
Offered By: CppCon via YouTube
Course Description
Overview
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.
Syllabus
Introduction
Other Serialization Libraries
structpack
type checking
hash code
testing
Taught by
CppCon
Related Courses
Error Handling in C++ - As Easy as "Use Exceptions"?NDC Conferences via YouTube A Short Life Span - For A Regular Mess
NDC Conferences via YouTube C++ - No More Nulls! - Fixing the Billion Dollar Mistake
NDC Conferences via YouTube The Markable Library
code::dive conference via YouTube C++23 Ranges - Functional Programming With New View Adaptors and Other Utilities
ACCU Conference via YouTube