2 ms·
http://fatagnus.com/unrolling-your-loop-for-better-performance-in-javascript/ http://fatagnus.com/unrolling-your-loop-for-better-performan... has a better varia
by btilly 16y ago
http://fatagnus.com/unrolling-your-loop-for-better-performance-in-javascript/ http://fatagnus.com/unrolling-your-loop-for-better-performan... has a better variation on the technique. In any case I would not bother with any of this without careful profiling in different browsers. In particular a lot of them have JIT, and I would expect JIT to automatically optimize some of this stuff. (Either now or in the future.)