Why ES6 isn’t always faster (09:56)
Most often you wouldn’t worry much about that level of optimization but in some situations when you need to slice off performance issues you might want to use ES5 – but these test change often and it’s a good idea to research them in a situation where it is applicable. In this lecture we will talk about how you should focus your energy when improving performance issues of your application.
- Generally speaking, don’t worry about ES6 vs. ES5
- performance generally isn’t about microseconds of one loop over another.
- Focus performance on: functions that are called often, loops, conditions, local references.
properties: es6, arrow functions, comparing