C++ Marshalling

Open-source C++ projects categorized as Marshalling

Top 3 C++ Marshalling Projects

Marshalling
  1. Protobuf

    Protocol Buffers - Google's data interchange format

    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.

  2. 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!

    JetBrains logo
  3. FlatBuffers

    FlatBuffers: Memory Efficient Serialization Library

    Project mention: JSON vs Protocol Buffers vs FlatBuffers: A Deep Dive | dev.to | 2025-03-06

    FlatBuffers, also developed by Google, is a highly optimized serialization library designed for scenarios where zero-copy deserialization is required.

  4. cppbor

    An implementation of cbor using C++ 17 variants (by RantyDave)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Marshalling discussion

Log in or Post with

C++ Marshalling related posts

  • FlatBuffers – an efficient cross platform serialization library for many langs

    1 project | news.ycombinator.com | 18 Sep 2023
  • Anyone has experience with reverse engineering flatbuffers?

    1 project | /r/REGames | 25 May 2023
  • flatbuffers - FlatBuffers: Memory Efficient Serialization Library

    1 project | /r/programming_art | 7 Mar 2023
  • How do AAA studios make update-compatible save systems?

    1 project | /r/gamedev | 5 Mar 2023
  • FlatBuffers: FlatBuffers

    1 project | /r/nfultz | 25 Jan 2023
  • Is using Flatbuffers to parse sensor data a bad application of Flatbuffers?

    1 project | /r/learnprogramming | 24 Jan 2023
  • Help finding a transpiled-to-C language

    1 project | /r/C_Programming | 26 Nov 2022
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    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 →

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

Sponsored
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!
surveys.jetbrains.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?