fireworks.js
fireworks.js copied to clipboard
Array.forEach is much slower than for
This is really faster in about 40%
In fact, it is 40% less CPU time, that is, productivity increased approximately 6 times.
Fixed some typo
40% faster !!! defintitly interesting, how did you get this number ?
CPU profiling on my own project. Fireworks CPU usage on render changed from 48% to 8%
Also found some tests. http://jsperf.com/foreach-speed-test
Updated... I'm bein wrong about for .. in, because i'm writing on coffescript, and it replaces for in with for loop. Updated test to compare forEach, for .. in and for. http://jsperf.com/foreach-speed-test/3
up