3 ms·
It applies to most languages. In practice you can't rely on the compiler, because you don't know what the compiler is doing. You certainly can't assume it's g
by TheOtherHobbes 11y ago
It applies to most languages.
In practice you can't rely on the compiler, because you don't know what the compiler is doing.
You certainly can't assume it's going to make the smartest possible decision for all of your code. There's no standardisation for optimisations, and they're often a context-dependent trade-off anyway.
The only way to write fast code is to learn the quirks of the tool chain and profile production binaries to find the bottlenecks.