3 ms·
In this one context, this one micro-optimization applies but for 99% of other cases, they don't (and shouldn't). Note the 'benchmark' in OP is run 500 million
by nacs 11y ago
In this one context, this one micro-optimization applies but for 99% of other cases, they don't (and shouldn't).
Note the 'benchmark' in OP is run 500 million times to see the performance difference. This is definitely not a common scenario.
- smt88 11y agoFor me, it's more the principle of the thing. This just seems like an insane way for an interpreter to behave. Even more insane is the proposal of minifying server-side JS!
- sim0n 11y agoNot that insane considering many people are using things like Babel to run ES6/7 code. If you're already compiling that code to ES5 for production, there's no harm in also minifying things.