r/cpp • u/pavel_v • Oct 21 '25
When Compiler Optimizations Hurt Performance
https://nemanjatrifunovic.substack.com/p/when-compiler-optimizations-hurt
68
Upvotes
r/cpp • u/pavel_v • Oct 21 '25
View all comments
17
u/Bisqwit Oct 21 '25
I prefer the integer-as-a-table approach. Branchless, no memory read operations.
https://godbolt.org/z/7jG9fqqPq