by panic · 9y ago · 0 comments
Has this changed recently? Last time I used unordered_map, insertion was also slow because it had to allocate a linked list entry for every item in the hash table.
Here are a few alternatives:
MCT closed_hash_map
Sparsehash's sparse_hash_map or dense_hash_map
loki::assocvector
boost::flat_hash_map