SteveSanderson/knockout — pull request #467 by sciolizer (2012-05-08 01:23:49+00:00)
Title: Performance enhancements

Hi,

I've made some performance enhancements to the knockout library, which is being uesd at preview.astrid.com. This pull request is the subset of my changes which don't break backwards compatibility.

It's hard to quantify how much faster the library is with these changes, since the performance gains will vary depending on how the library is used. On our site, however, for users with over 1000 tasks (astrid.com is a free task management service), the performance enhancements in here reduced page rendering time from 8 seconds to 300 milliseconds. I want other users of your library to be able to take advantage of these performance gains.

All of the unit tests pass.

I didn't find a style guide anywhere, so I took my best guess. Let me know if you're unhappy with the code.

Josh "Ua" Ball