News for hackers. Stuff that matters.
Re:Parsing gigabytes of JSON per second by ec109685 on Saturday October 23, 2021 @06:05PM (#28972819)
Why do you think human readable adds appreciable overhead? If you want to create a flexible interchange format, that is going to require some sort of parse step whether the format is text or binary.

That said, probably FlatBuffer would be even an optimized json parser, but json is crazy fast if the parser takes advantage of all modern processor optimizations.

Re:Parsing gigabytes of JSON per second by koolba on Saturday October 23, 2021 @06:13PM (#28972881)
There’s no way reading a series of text is going to beat a machine native byte representation, particularly for things like range limited integers. If you plan things right with proper word alignment, you don’t even have to copy the data to process it as you can directly dereference the byte offsets as machine native ints.
Re:Parsing gigabytes of JSON per second by ec109685 on Saturday October 23, 2021 @11:08PM (#28974580)
But that isn’t an interchange format given different processors represent such things differently.