SBE
Bitsery
Our great sponsors
SBE | Bitsery | |
---|---|---|
7 | 8 | |
3,015 | 983 | |
0.9% | - | |
8.5 | 4.0 | |
6 days ago | 2 months ago | |
Java | C++ | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SBE
- Simple Binary Encoding (SBE) – High Performance Message Codec
- Simple Binary Encoding (SBE)
-
Possibly stupid question, is java the right language for low latency and high throughput web servers?
I was about to suggest Chronicle, but it looks like they have gone closed-source. The older version is still interesting to look through though. Aeron / Disruptor / SBE are good projects for inspiration as well.
-
GitHub - realtimetech-solution/opack: Fast object or data serialize and deserialize library
Could you evaluate how it compares with SBE?
-
Simple Binary Encoding (SBE) now supports Rust
The Simple Binary Encoding (SBE) project now includes support for generating Rust code. Generated code produced does not use unsafe and has no dependencies on any other crates.
-
I made an NBT-based data format, but a little more general purpose
SBE
-
Parsing Protobuf at 2+GB/S: How I Learned to Love Tail Calls in C
Consider a valid protobuf message with such a field. If you can locate the field value bytes, you can write a new value to the same location without breaking the message. It's obviously possible to the same with the varint type too, as long as you don't change the number of bytes - not so practical, but useful for enum field which has a limited set of useful values (usually less than 128).
Pregenerating protobuf messages you want to send and then modifying the bytes in-place before sending is going to give you a nice performance boost over "normal" protobuf serialization. It can be useful if you need to be protobuf compatible, but it's obviously better to use something like SBE - https://github.com/real-logic/simple-binary-encoding
Bitsery
- What are some ways I can serialize objects?
-
Introducing ByteStream, a super intuitive, safe, reliable and easy to use utility for binary serialisation and deserialization of complex and deeply nested C++ objects. Looking forward to feedback and comments.
Thanks for sharing https://github.com/fraillt/bitsery it seems more powerful but require quite a boilerplate code for even very simple composite stuff. With ByteStream you can totally forget about deep you are in the data-structure hierarchy.
- Is there any good binary serializer & deserializer for C / C++?
-
Binary serialization library for at least C++17?
Bitsery is the closest I've seen to it, but you have to use extensions (which i can't yet figure out the API for) to make it achieve byte for byte compatbility
-
Google Protobuf vs JSON vs [insert candidate here]
If size and performance matter, then take a look at bitsery. * it might be 9x+ faster than cereal and 18x faster than protobuf. * size-wise, you might save 20-30% by default * on top of that you additional might opt-in into: * bit-level serialization control (e.g. if your values are in the range 1000-2000 it will take you 10bits, or use VLE) * backward-forward compatibility support * pointer support, including raw pointers with the ability to provide custom allocator. * and powerful extensions system, which allows you to further customize things in any way you want it :)
-
easy Serialization library for C++?
About on par with nlohmann is a binary serialization lib called Bitsery. It's easy to use, and will be a lot more performant than json. The downside is that the serialized data won't be human readable.
What are some alternatives?
Protobuf - Protocol Buffers - Google's data interchange format
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
smf - Fastest RPC in the west
Apache Avro - Apache Avro is a data serialization system.
cereal - A C++11 library for serialization
MessagePack - MessagePack implementation for C and C++ / msgpack.org[C/C++]
Boost.Serialization - Boost.org serialization module
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
Cap'n Proto - Cap'n Proto serialization/RPC system - core tools and C++ library
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum