mirror of
https://github.com/nlohmann/json
synced 2024-11-27 14:20:07 +00:00
224f99070b
A lot of small changes to avoid memory allocations: - The locale is only queried once rather than with every number serialization. - The indentation string is recycled between different calls. - The string escape function avoids a copy if no escaping is necessary. - The string escape and the space function use a complete switch case instead of cascaded ifs. Cachegrind measures some 15% performance improvement. |
||
---|---|---|
.. | ||
data | ||
reports | ||
src | ||
thirdparty | ||
CMakeLists.txt | ||
Makefile |