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!
135
Upvotes
View all comments
Show parent comment
7
u/adzm 28 years of C++! Feb 17 '26
Related, flat maps and sets can be faster than std maps and unordered / hash maps a lot of times