Re:Effortless Performance Improvements in C++: std:unordered...
by jeffbee on Thursday March 02, 2023 @08:31AM
(#34995406)
Map is unfriendly in several ways because of the nodes being allocated with new by default. You can significantly improve its behavior by constructing the map with an arena allocator. Then you will enjoy better cache locality and cheaper mutations.
[ Parent
| on HN ]
There are no comments on this comment yet.