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