Efficient Looping in Javascript
Bas Wenneker, on his blog solutoire.com just posted some data he compiled using various methods for iterating over a data set that’s pretty interesting.
While I’m a great fan of Javascript Libraries like Prototype and Mootools, I’m less happy with their iterators. Iterating through a large array just takes ages using Array.each(). I think the most annoying thing with Javascript is that it freezes the browser while it’s being processed. So I started Aptana and wrote a small benchmark, and I tested it with FF2, Opera 9.1 and IE6. I did the testing on WinXP SP2 running on my crappy AMD Duron 1600 (yes, it’s almost antique). In this article I present the results of the benchmark.
Leave a Reply
You must be logged in to post a comment.