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!
133
Upvotes
View all comments
Show parent comment
25
u/SlightlyLessHairyApe Feb 16 '26
We did a whole exercise of “outlining” to move cold code away from hot code.
Even moved parts of functions (usually error handling).
Big gains on L1