What's the Fastest Way to Code a Loop in Javascript?
blogs.sun.com
blogs.sun.com
IE 7.0.5730.11 / WinXP SP2
Native Array (length=1000, looped 100 times)
While loop in reverse, simplifying the test condition. var i = arr.length; while (i--) {}
Took 0ms to execute... very unexpectedIs it possible that IE 7 is deleting the whole loop as a no-op?
The presentation needs work, though. Would some charts be so difficult to make? Much easier to compare results that way.
edit: note this post is from 2008.