ahoskins / Winston

an AngularJS schedule builder for UAlberta students
GNU Affero General Public License v3.0
21 stars 1 forks source link

investigate the benefits of using immutable data (for performance) #35

Closed ahoskins closed 8 years ago

ahoskins commented 9 years ago

Immutable data can drastically increase performance. It guarantees the validity of referential equality for a number of tasks like: memoization (which we do on search), stuff like $scope.$watchCollection (which we also do), and in React world it can do wonders when using PureRenderMixin (but since Angular renders straight into the DOM, I don't think this applies).

ImmutibleJS is a popular Facebook project implementing all the normal data structures with persistent data structures.

rosshamish commented 9 years ago

This sounds like a good idea to me

ahoskins commented 9 years ago

relevent blog post: http://blog.mgechev.com/2015/03/02/immutability-in-angularjs-immutablejs/

ahoskins commented 8 years ago

Lol, no this is not happening anymore. It performs good enough