3 ms·
The optimization is transforming all code that matches the pattern independent from whether the code is hot or not. The transformation comes with cognitive cos
by elka 9y ago
The optimization is transforming all code that matches the pattern independent from whether the code is hot or not.
The transformation comes with cognitive cost for the developer as it can turn correct code into incorrect code (sparse arrays).
By enabling this one trades complexity for potential performance gains.
This is how I understand premature.