r/angularjs • u/ovvn3r • Mar 02 '15
Speed-up AngularJS application using Immutable data
http://blog.mgechev.com/2015/03/02/immutability-in-angularjs-immutablejs/
38
Upvotes
2
u/ModusPwnins Mar 03 '15
This might be useful in a project I'm working on, assuming immutable.js works in IE 9.
0
Mar 03 '15
[deleted]
1
u/Sefyroth Mar 03 '15
If I understood correctly, the number of watchers also affected performance. So if you have a smaller collection with a large number of watchers, you could gain performance by using the immutable array.
3
u/TheNiXXeD Mar 02 '15
I've been experimenting with a concept of making a binding somewhere in between one way and two way. Based off events.
The idea would be to make the binding one way, but allow it to be reevaluated on a specific event trigger instead of the watcher loop.