Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

A Faster Serialization Library Based on Compile-time Reflection and C++ 20

CppCon via YouTube

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

Reviews

Start your review of A Faster Serialization Library Based on Compile-time Reflection and C++ 20

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.