2 ms·
> The way to prevent that is to learn about these optimizations, which change often and in undocumented ways, making your code perform very differently across v
by dxhdr 8y ago
> The way to prevent that is to learn about these optimizations, which change often and in undocumented ways, making your code perform very differently across versions.
Not only that, your code can perform very differently across minor changes! All it takes is a single modification to start triggering cascading deoptimizations and lead to severely degraded performance. Even writing 0 instead of 0.0 (or vice versa) can change how the code is optimized and reduce performance.