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!

131 Upvotes

185 comments sorted by

View all comments

Show parent comment

1

u/Fabulous-Meaning-966 Feb 20 '26

In a vacuum, probably. In the real world, "it depends".

1

u/thisismyfavoritename Feb 21 '26

often the "it depends" reasons would disappear if Rust was actually onboarded. The cost to switch has to be paid once