Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →
Top 3 C++ Marshalling Projects
-
Project mention: I wasted weeks hand optimizing assembly because I benchmarked on random data | news.ycombinator.com | 2025-07-24
(((uint32_t)clz + 7) * 9) >> 6
3. Hand roll a jump table taking advantage of arm's fixed instruction width to calculate the jump target with a shift.
https://github.com/protocolbuffers/protobuf/commit/b039dfe26...
This results in one branch for 1 byte varints, plus one additional branch for any larger size, and the branch predictor does not have to track a varying trip count through a loop. This approach resulted in a 2.64% speedup for overall encoding (which includes a lot more than just varints) on mid sized arm cores.
I think it's very difficult to beat a single comparison and branch for the 1 byte case for actual encoding forwards or backwards, unless you know there's going to be long runs of one-byte values.
-
JetBrains
Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
-
FlatBuffers, also developed by Google, is a highly optimized serialization library designed for scenarios where zero-copy deserialization is required.
-
C++ Marshalling discussion
C++ Marshalling related posts
-
FlatBuffers – an efficient cross platform serialization library for many langs
-
Anyone has experience with reverse engineering flatbuffers?
-
flatbuffers - FlatBuffers: Memory Efficient Serialization Library
-
How do AAA studios make update-compatible save systems?
-
FlatBuffers: FlatBuffers
-
Is using Flatbuffers to parse sensor data a bad application of Flatbuffers?
-
Help finding a transpiled-to-C language
-
A note from our sponsor - Sevalla
sevalla.com | 1 Sep 2025
Index
What are some of the best open-source Marshalling projects in C++? This list will help you:
# | Project | Stars |
---|---|---|
1 | Protobuf | 68,919 |
2 | FlatBuffers | 24,677 |
3 | cppbor | 14 |