3 ms·
I can attest strongly to these optimizations - and for everybody who is saying "don't worry about it" in these threads you would be surprised at how wrong/bad J
by marknadal 10y ago
I can attest strongly to these optimizations - and for everybody who is saying "don't worry about it" in these threads you would be surprised at how wrong/bad JS perf is without these.
Every function call in JS (even named functions that do not have to be created at execution time) have logarithmic decrease in performance (this means your 2nd function call can half your performance).
Using these techniques and others, we've been able to get some unbelievable results (30M to 50M ops/sec) for our JavaScript library. Check out this link for a podcast on how we did it as well as more information: https://github.com/amark/gun/wiki/100000-ops-sec-in-IE6-on-2GB-Atom-CPU https://github.com/amark/gun/wiki/100000-ops-sec-in-IE6-on-2... .