epserde-rs icon indicating copy to clipboard operation
epserde-rs copied to clipboard

Comparison to bincode?

Open evbo opened this issue 10 months ago • 1 comments

The readme introduces the problem so well, but you don't mention bincode, which also aims to solve the problem of binary storage of large structures from memory.

What is epserde-rs better fit for vs existing giants in this space like bincode?

evbo avatar Mar 28 '24 01:03 evbo

Yeah we should mention it, bincode while it's a great crate, it doesn't do zero copy deserialisation which is the core aspect of epserde.

Moreover, it doesn't have any file header / versioning, in epserde we went to great lengths to hash the serialized type data layout. This way if the user changes the order of fields in a repr(C) struct or changes a type, epserde will complain and refuse to load an incompatible file.

zommiommy avatar Mar 28 '24 06:03 zommiommy