r/cpp • u/Little-Reflection986 • Feb 16 '26
Favorite optimizations ??
I'd love to hear stories about people's best feats of optimization, or something small you are able to use often!
138
Upvotes
View all comments
Show parent comment
1
u/adzm 28 years of C++! Feb 17 '26
For 1 and 2, flat maps are the implementations of that idea, available in boost and several other libraries