Re:JsonLogic
by fastball on Thursday May 27, 2021 @04:36PM
(#27308111)
How much slower is JSON serialization than XML serialization?
[ Parent
| on HN ]
Roughly in the same order of magnitude, depending on the implementation.
Light-years away from zero-copy serialization formats.
See https://en.wikipedia.org/wiki/Comparison_of_data-serializati...
Random example: https://google.github.io/flatbuffers/md__benchmarks.html
Speed is not everything: being able to self-describe data structures (without the data) enables generation of parsers, documentation and tests.
Streaming support also matters.
Re:JsonLogic
by deathanatos on Thursday May 27, 2021 @08:51PM
(#27310529)
It's not. The grammar for JSON is vastly simpler than XML.
(I'm certain one can find a slow JSON serializer out performed by a fast XML serializer, but that's not the point.)