3 ms·
One of the early advent of code challenges triggered this situation for many people (including myself). The same program compiled in release mode was more than
by dralley 5y ago
One of the early advent of code challenges triggered this situation for many people (including myself). The same program compiled in release mode was more than 4000x faster than debug mode.
https://media.discordapp.net/attachments/386246790565068811/917659835854643220/Screenshot_from_2021-12-07_01-06-51.png https://media.discordapp.net/attachments/386246790565068811/...
Although it's worth mentioning that LLVM understands math and might be replacing an inefficient sum calculation with an efficient algorithm, so it might not be all down to codegen.