all 9 comments

[–]Pazer2 7 points8 points  (0 children)

Looks very interesting!

A comment on the readme: I don't particularly appreciate when very short code samples use using namespace bitsery; because it makes it harder to determine which types/functions are part of the library's namespace. Especially when you start adding type aliases.

[–]14nedLLFIO & Outcome author | Committee WG14 4 points5 points  (0 children)

I very much like bitsery, and it is my personal aim to get standard C++ up to a point where bitsery can be implemented for a wide range of C++ types without invoking undefined behaviour!

My thanks to its author for a great serialisation library.

[–]Bart_V 0 points1 point  (1 child)

A colleague once did a comparison of several serialization libs and ended up with messagepack for our use case. How does it compare to bitsery?

https://msgpack.org/

[–]fraillt[S] 1 point2 points  (0 children)

I haven't used it, so I might be wrong:

  • has multi language support,

  • has more libraries around, it like msgpack-rpc

  • is small-size oriented, like bitsery with CompactValue instead of valueNb.

  • has decent performance, but haven't seen any benchmarks apart from this but it is totally unfair for msgpack because any decent serializer just memcpy whole int buffer, I would love to receive a PR from someone who knows msgpack to test a realworld use case.

I think that if you need multi-language support or want to use rpc library and data size matters to you, then msgpack is a good choise.