3 ms·
Yeah, but the whole point of the article is that the names of your variables (and even your comments!!) do make a difference in performance.
by smt88 11y ago
Yeah, but the whole point of the article is that the names of your variables (and even your comments!!) do make a difference in performance.
- nacs 11y agoIn 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.