Currently we also parse JSON in some asset sources. In the future, when we start working on the server there will likely be more places.
We use api::Dict (aka nlohmann::json as of writing this issue). While this is convenient as it supports JSON parsing, it's easy to use, and it's already there, its performance is not really good.
Even a simple library like sajson outperforms it by orders of magnitude. If we also need to generate JSON almost anything is better in perf than nlohmann.
It would be good for the environment if we consider other libs where Dict is not a requirement.
Currently we also parse JSON in some asset sources. In the future, when we start working on the server there will likely be more places.
We use
api::Dict
(akanlohmann::json
as of writing this issue). While this is convenient as it supports JSON parsing, it's easy to use, and it's already there, its performance is not really good.Even a simple library like sajson outperforms it by orders of magnitude. If we also need to generate JSON almost anything is better in perf than
nlohmann
.It would be good for the environment if we consider other libs where
Dict
is not a requirement.