I made a small write up how to identify slow parts of C++ code with Linux’ perf and pprof and replace inefficient data structures. You can find the write up in the project section.