Re:Comparison of C++17, Go, and Java for a next-generation s...
by TwoBit on Friday April 24, 2020 @01:14AM
(#22964872)
So use unordered_map with an allocator that returns nodes from a small local memory?
[ Parent
| on HN ]
Re:Comparison of C++17, Go, and Java for a next-generation s...
by josefx on Friday April 24, 2020 @02:19AM
(#22965209)
To 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?