Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch hash tables to emhash8::HashMap.
This is much faster than std::unordered_map, and also slightly faster than phmap::flat_hash_map that was included in PR #2468. It is MIT-licensed, and we just include the .h file wholesale. I haven't done a detailed test of all the various unordered_maps out there, but this is the overall highest-ranking contender on https://martin.ankerl.com/2022/08/27/hashmap-bench-01/ except for ankerl::unordered_dense::map, which requires C++17. For a no-op build of Chromium (Linux, Zen 2), this reduces time spent from 5.14 to 4.62 seconds.
- Loading branch information