3 ms·
Ah, the mythical sufficiently smart compiler! http://wiki.c2.com/?SufficientlySmartCompiler http://wiki.c2.com/?SufficientlySmartCompiler
by kqr 4y ago
Ah, the mythical sufficiently smart compiler! http://wiki.c2.com/?SufficientlySmartCompiler http://wiki.c2.com/?SufficientlySmartCompiler
- IshKebab 4y agoThat's a different thing - the "sufficiently smart compiler" is postulating that it doesn't matter if a language is not very high performance because somehow magically there will one day be a compiler that can just figure out how to optimise the code in every case. I'm just saying that in this particular case, sometimes the compiler will be able to optimise it but you can't rely on it. https://godbolt.org/z/WshcfWPEh https://godbolt.org/z/WshcfWPEh