r/cpp • • 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

185 comments sorted by

View all comments

Show parent comment

2

u/Both_Helicopter_1834 Feb 16 '26

To me, that doesn't seem obviously true in general. Can you elaborate?

1

u/lordnacho666 Feb 16 '26

Let me see if I can find an old SO question. (Yes I know they're all old lol)