3 ms·
Wow, this is all a bit disheartening to read the day after I spent all day updating my app to ES6 + babel. These performance hits are extreme. I would never h
by haberman 11y ago
Wow, this is all a bit disheartening to read the day after I spent all day updating my app to ES6 + babel.
These performance hits are extreme. I would never have guessed that so many of these features are taking 20-2000x speed hits.
I hope the browsers and V8 catch up soon so transpiling ES6 is no longer necessary.
- skrebbel 11y agoUse loose mode. Not only will sane code seldom hit the edge cases, it also generates way more readable es5. And, according to this article, there's hardly any performance hit left.
- fenomas 11y agoDid you profile the before and after versions of your app? I think some of the more extreme results (like 2000x) here may just be due to the benchmarks getting optimized into empty functions.