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
15
u/Successful_Yam_9023 Feb 16 '26
It's prosaic but the thing I get the most mileage out of is just looking at the assembly my source code got compiled into. Looking at it doesn't make the code faster by itself, but if I hadn't looked I would just be blindly guessing about what to do next.