Further analysis indicated that these mispredicted branches were the actual call of the BitMap::iterate function. This is caused by a couple of reasons - first BitMap::iterate is defined in the .cpp file and so cannot be inlined. We might be able to do better by actually implementing a...
I wrote a hacky script that did 100,000 duplicates and it was in 110th place in profiling, so I'll need more hints as to what is slow. The problem is not in the code that calculates the duplicates (that does use a hash map), but in the code that assigns the trace code. This ...
which returns astd::mapwherefirstandsecondrepresents name and value. Don't know if this extra complication warrants aname()function inbasic_jsonor not. Sorry, something went wrong. Copy link Owner nlohmanncommentedMay 3, 2015 Unfortunately, there is no way for a JSON value to "know" whether...