News for hackers. Stuff that matters.
Re:How I cut GTA Online loading times by 70% by nicoburns on Monday March 01, 2021 @05:39AM (#26301441)
>I'm sure there are libraries to parse json in C++

There certainly are, but adding a library is much more difficult in C++ than pretty much any other language which seems to tempt people into hacky self-built parsing when they really ought to know better.

Re:How I cut GTA Online loading times by 70% by bleachisback on Tuesday March 02, 2021 @12:47AM (#26312256)
The first C++ JSON library that appears when you google it is a single header file.

https://github.com/nlohmann/json

I know because I used it years ago in school.

One of the fastest libraries (https://github.com/miloyip/nativejson-benchmark#parsing-time) is also header-only and compares its speed to strlen.

https://github.com/Tencent/rapidjson