Beware: Chrome array.sort implementation is unstable!

SEE FULL POST

Beware: Chrome array.sort implementation is unstable!Javascript

by Roberto on December 13, 2012 with 2 comments

Today, we’ve stumbled with a javascript sorting issue. We just wanted to sort some items inside an array but, surprisingly, the results that Google Chrome has shown were completely unexpected.

Let’s say we have a collection of objects with 2 properties: ID (which is a numeric id) and ISACTIVE (boolean here). This collection is properly ordered by ID and you have only one item with ISACTIVE property == true.

continue reading ...

Tags:
JavaScript Performance: Loops 2

SEE FULL POST

JavaScript Performance: Loops 2Javascript, JQuery

by Roberto on August 10, 2012 with 0 comment
UPDATE: Check out my last post on the matter: JavaScript Performance: JsPerf.com Myths

This is the second post of a series of posts about javascript performance and loops and I’m going to focus on the several loop options that we have in some of the most popular javascript libraries, namely JQuery and Underscore, and I will compare their performance in front of the classic loops that we tested in my previous post.

continue reading ...

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close

Google+