Replies: 1 comment 1 reply
-
Did you compile in Release mode? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
There is a major performance bottleneck when using
nlohmann:json
. In my scenario, there are 300 hundred JSON objects, and each JSON has 1,000 keys. After serializing usingjson
, the performance is downgraded by 8-10x times.I tried ordered_json and json, and results are identical. I also use Valgrind for performance profiling, and
callgrind
results indicatejson
incurs high overhead. Asjson
andordered_json
are built on top ofSTL
, so the real cause is STL?How to boost the performance? Appreciate your help.
Beta Was this translation helpful? Give feedback.
All reactions