loading...

re: Using arrow functions might be costing you performance VIEW POST

TOP OF THREAD FULL DISCUSSION
re: This might be more interesting to compare: jsperf.com/fufufufu/3
 

In my test run the results are almost the same for all three tests (ops/sec varies +-1%).

That is the point ;)

This article is pretty fear mongering and statistically incorrect 🤓.

  • Don't worry about using arrow function expressions
  • Don't worry about using implicit return

In the same line:

  • Don't worry about relying on Automatic Semicolon Insertion
  • Don't worry about using "class"es or (other) prototype-inheritance

The bottleneck of the code is not going to be in the syntax one uses.

Code of Conduct Report abuse