r/cpp • • Oct 21 '25

When Compiler Optimizations Hurt Performance

https://nemanjatrifunovic.substack.com/p/when-compiler-optimizations-hurt
68 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/Nicksaurus Oct 21 '25

Yes, the point is that it's a mixture, which is why branch prediction matters