Tags
array bash benchmark cli compose compose key configuration css diy editorial firefox fixes gotcha hack hardware html5 input javascript jquery jsperf keyboard linux mouse multi touch multitouch nginx opera performance preferences prototype ruby sameheight snippet special characters ssh style syntax touchpad touch pad trackpad track pad ubuntu w3c web standards wiiCategories
-
Recent Posts
Recent Comments
- Lashell on Defining Functions Inline Is Just Fine
- Christian Iversen on JavaScript Performance: Iterating over Arrays with Holes
- force on JavaScript Performance: Iterating over Arrays with Holes
- Christian Iversen on JavaScript Performance: Iterating over Arrays with Holes
- force on Delete a Line from a File by Its Line Number
Archives
Meta
Tag Archives: array
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 array, benchmark, hole, iteration, javascript, jsperf, loop, undefined
3 Comments
Add Stable Merge Sort to Array and jQuery Prototypes
Some browsers’ JavaScript implementations don’t implement a stable sort, but stable sorting can be so handy if you want to, say, sort a table by multiple columns. So here’s a quick and easy way to add an efficient, stable merge … Continue reading
Posted in javascript
Tagged array, extend, javascript, jquery, merge sort, mergesort, prototype, sort, sorting, stable sort, stable sorting
Leave a comment