8 ms·
So use unordered_map with an allocator that returns nodes from a small local memory?
by TwoBit 6y ago
So use unordered_map with an allocator that returns nodes from a small local memory?
- josefx 6y agoTo be useful that would require that the nodes are allocated in the order they appear in the map (and still has pointer overhead). Is that a given with an unordered map or does it break down the moment the map is rehashed?