4 ms·
such as https://en.wikipedia.org/wiki/Protocol_Buffers https://en.wikipedia.org/wiki/Protocol_Buffers ?
by vmfunction 2y ago
such as https://en.wikipedia.org/wiki/Protocol_Buffers https://en.wikipedia.org/wiki/Protocol_Buffers ?
- nXqd 2y agolast time I read, simdjson still beat protocol buffer a bit.
- lifthrasiir 2y agoDue to the inherent constraint of JSON, the exact use case would matter a lot for such comparisons. Simdjson is generally faster when you only want a well-formedness check or a very small proportion of a large input JSON, but the "well-formedness" for JSON would be a small subset of the "well-formedness" of binary formats, and a partial parsing performance is often dominated by language bindings instead of underlying parsers (it is a wise move that simdjson also has a JSON pointer support for this reason, because that greatly reduces FFI overhead). Binary formats in comparsion tend to have a generally flat performance profile.
- chpatrick 2y agoIt's not self-documenting, you can't decode it unless you have the .proto. JSON just works.
- mort96 2y agoYeah, that's a great example of a non-human-readable binary format