3 ms·
It's all relative, right? If I'm writing some super perf-sensitive code like manipulating an array of PCM data for Web Audio stuff or doing a complex canvas an
by kevincennis 11y ago
It's all relative, right?
If I'm writing some super perf-sensitive code like manipulating an array of PCM data for Web Audio stuff or doing a complex canvas animation, then the savings of not using Function#bind are probably kind of important.
For most everyday code, avoiding bind() kind of feels like premature optimization to me.
- satori99 11y agoYeah, definately a realtive issue. And also easy to fix after the fact, but as you say, it becomes important for inner-loop stuff. I spent a few hours removing it from a codebase of mine last week, to see substantial improvements on all browsers.