Fastest JSON parser in the world is a D project
Sönke Ludwig via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Oct 19 00:48:16 PDT 2015
Am 16.10.2015 um 18:04 schrieb Marco Leise:
> Every value that is read (as opposed to skipped) is validated
> according to RFC 7159. That includes UTF-8 validation. Full
> validation (i.e. readJSONFile!validateAll(…);) may add up to
> 14% overhead here.
>
Nice! I see you are using bitmasking trickery in multiple places.
stdx.data.json is mostly just the plain lexing algorithm, with the
exception of whitespace skipping. It was already very encouraging to get
those benchmark numbers that way. Good to see that it pays off to go
further.
More information about the Digitalmars-d-announce
mailing list