Tag Archives: benchmark

JavaScript Performance: Iterating over Arrays with Holes

I was sketching some code that basically took some data from a database and cached it in an array to be repeatedly reused. Conveniently, each row from the database had a unique ID, so I could use that as an … Continue reading

Posted in javascript, Uncategorized | Tagged , , , , , , , | 3 Comments

Defining Functions Inline Is Just Fine

I put together this jsperf to see if there’s a difference between defining your function and then using it or defining it inline when looping with jQuery.each. You can try it yourself if you like, but here are the results: … Continue reading

Posted in javascript | Tagged , , , , | 1 Comment