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/serviscope_minor Feb 17 '26

exit(0);

Below that, there's an even more fundamental garbage collection:

https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98125

1

u/mredding Feb 17 '26

It doesn't get more fundamental than that.