News for hackers. Stuff that matters.
Re:C++: The Documentary by mixolydianagain on Friday June 05, 2026 @04:35AM (#48409697)
some of the STL is easy to improve on. For example, std::unordered_map performs poorly due to pointer stability requirements in the standard. Most performance sensitive C++ codebases will use something like abseil's hash maps instead.
Re:C++: The Documentary by spacechild1 on Friday June 05, 2026 @05:50AM (#48410233)
Just a heads-up: if you're already using boost, boost::unordered now has open addressing containers (unordered_flat_map and unordered_flat_map) and they are among the fastest.
Re:C++: The Documentary by ahartmetz on Friday June 05, 2026 @07:40AM (#48411057)
Seconding this - boost::unordered_flat_map was only added in December 2022 and many people don't know about it yet.