TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 227 subscribers
Post #23943 20
zerialize: zero-copy multi-protocol serialization library

Hello all!

github.com/colinator/zerialize

I'd like to present 'zerialize', a zero-copy multi-dynamic-protocol serialization library for c++20. Zerialize currently supports JSON, FlexBuffers, MessagePack, and CBOR.

The main contribution is this: zerialize is fast, lazy and zero-copy, if the underlying protocol supports it.

Lazy means that, for supporting protocols (basically all except JSON), deserialization is zero-work - you only pay when actually reading data, and you only pay for what you use.

Zero-copy (again, for all but JSON) means that data can be read without copying from bytes into some structure. This zero-copy ability comes in handy when deserializing large structures such as tensors. Zerialize can zero-copy deserialize blobs into xtensor and eigen matrices. So if you store or send data in some dynamic format, and it contains large blobs, this library is for you!

I'd love any feedback!

https://redd.it/1nuayda
@r_cpp
GitHub GitHub - colinator/zerialize: Zero-copy multi-format serialization for c++. Zero-copy multi-format serialization for c++. Contribute to colinator/zerialize development by creating an account on GitHub.
More from @r_cpp
  1. Oct 17, 2026"C++23 - The Complete Guide" now as Paperback C++23 - The Complete Guide is now also avail…
  2. Oct 17, 2026A quick C++ standard container overview https://meetingcpp.com/blog/items/A-quick-Cpp-stan…
  3. Oct 17, 2026The Double Headed Stack Allocator – The blog at the bottom of the sea https://blog.demofox…
  4. Oct 17, 2026Barry's C++ Blog - Generating Operator Functions https://brevzin.github.io/c++/2026/10/14/…
  5. Oct 17, 2026MSVC Build Tools Version 14.52 Release Candidate Now Available https://devblogs.microsoft.…
  6. Oct 17, 2026C++ futures part 4: What if I want an immediate on-thread std::async? https://devblogs.mic…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →