r/cpp • • Oct 21 '25

When Compiler Optimizations Hurt Performance

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

11 comments sorted by

View all comments

Show parent comment

2

u/tialaramex Oct 21 '25

Also, real world text processed by machines is full of ASCII. Yes there is some Cyrillic, some Han characters, and some Emoji even, but even when you're processing text from a program used entirely by humans who don't know any languages written with the Latin writing system they're way more likely to use ASCII symbols than you might naively expect. They're almost certainly going to use ASCII's digits, and some of its other symbols for example.

2

u/Nicksaurus Oct 21 '25

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