Optimizing Javascript for fun and for profit
What's confusing for me is many common coding patterns, while generally considered good, can actually become performance bottlenecks in optimizing JavaScript for speed. For example
- Avoid array/object methods like
map,filterin functional style - Prefer concatenation over template literals for strings
Still many other tricks are useful.
Refs: