Getting underlying struct for parseJSON

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 28 14:52:40 PST 2017


On Tuesday, 28 February 2017 at 20:48:33 UTC, Petar Kirov 
[ZombineDev] wrote:
> On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote:
>> [...]
>
> If you really care about performance, have a look this: 
> http://forum.dlang.org/post/20151014090114.60780ad6@marco-toshiba
>
> std.json is not tuned for performance, so don't expect good 
> results from it.

It's a bit OT, but asdf is even faster and has a simple API:

https://github.com/tamediadigital/asdf

In terms of performance:

> Reading JSON line separated values and parsing them to ASDF - 
> 300+ MB per second (SSD).
> Writing ASDF range to JSON line separated values - 300+ MB per 
> second (SSD).

Another good library is std.data.json (Json parsing extracted 
from Vibe.d):

https://github.com/s-ludwig/std_data_json


More information about the Digitalmars-d-learn mailing list