Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Looks like accessing array backwards is slow, but not because of while.
http://jsperf.com/html-canvas-performance/3
same perfperformance with following code for me.
var i = 0, z = e.length; while(i < z) e[i++] *= 123;
same perf with following code
same performance with following code for me.
Looks like it is accessing array backwards is slow, but not because of while.
Looks like it is just because ofaccessing array have to initialize backwards is slow, but not because of while.
Looks like it is just because of array have to initialize backwards.