jamescourtney / FlatSharp

Fast, idiomatic C# implementation of Flatbuffers
Apache License 2.0
511 stars 51 forks source link

Comparsion of data size #2

Closed nxrighthere closed 3 years ago

nxrighthere commented 6 years ago

James, thanks for this implementation. I like the fact that it's based on Memory<T> and Span<T>, this is something fresh for me in the serializers area.

Can you please provide data size comparison with those serialization libraries in the readme?

jamescourtney commented 6 years ago

This is a good idea, and I'll look at it soon. Still busy trying to get the core of FlatSharp done in a way that I'm happy with and that I can stand behind.

In general, FlatBuffers will be chattier than, say, Protobuf, since it uses fixed-width encodings and writes only aligned data. For big byte arrays or big strings, there won't be a huge difference. I've just published alpha-ish packages under "FlatSharp" and "FlatSharp.Unsafe" that you can play with if you like. Would love to know your thoughts!