varvet / serenade.js

Client side MVC framework
http://serenadejs.org
Other
524 stars 27 forks source link

Array transforms #92

Closed jnicklas closed 11 years ago

jnicklas commented 11 years ago

With this pull requests, manipulations on collections cause only the elements which actually require changing to change. This should be hugely more performance for large collections. In order for this to work we calculate a set of operations which transform one array into another and then apply this to the DOM.

@Burgestrand, @cjse et al. please review this and give some feedback if it seems sane.

I still need to try this out on an actual application, as well as benchmarking how well it performs.

cjse commented 11 years ago

Cool! Can we try this out on Shotbox or Jupiter?

jnicklas commented 11 years ago

Tried this out on Shotbox and it seems to work very nicely. Definitely a huge increase in performance. Same results in all benchmarks I tried. Even for small arrays, which is surprising. Win!

cjse commented 11 years ago

@jnicklas Nice work!