Comparing Data Serialization Formats: Code, Size, and Performance
qt.io·17h·
Discuss: Hacker News
Flag this post

November 03, 2025 by Dennis Oberst | Comments

In this post, we explore different approaches for data serialization, comparing the key well-known formats for structure data. These are also all readily available for your Qt projects.

We made the comparisons by testing the QDataStream, XML, JSON, CBOR and Protobuf data serialization formats using a realistic scenario. As a result, differences were found in code, data size, and performance in terms of serialization and de-serialization times between each format. You can use these findings to help make informed decisions when choosing which one to use.

You’ll find detailed coverage of:

[Remarks on Testing with Complex, Nested Data](#remarks-on-testing-with-complex-nested-d…

Similar Posts

Loading similar posts...