Fastest JSON parser in the world is a D project

Sean Kelly via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Oct 17 09:27:06 PDT 2015


On Saturday, 17 October 2015 at 16:14:01 UTC, Andrei Alexandrescu 
wrote:
> On 10/17/15 6:43 PM, Sean Kelly wrote:
>> If this is the benchmark I'm remembering, the bulk of the time 
>> is spent
>> parsing the floating point numbers. So it isn't a test of JSON 
>> parsing
>> in general so much as the speed of scanf.
>
> In many cases the use of scanf can be replaced with drastically 
> faster methods, as I discuss in my talks on optimization 
> (including Brasov recently). I hope they'll release the videos 
> soon. -- Andrei

Oh absolutely. My issue with the benchmark is just that it claims 
to be a JSON parser benchmark but the bulk of CPU time is 
actually spent parsing floats. I'm on my phone though so perhaps 
this is a different benchmark--I can't easily check. The one I 
recall came up a year or so ago and was discussed on D.general.



More information about the Digitalmars-d-announce mailing list