Skip to content

Commit

Permalink
For tastejs#453 - adds initial angular-perf readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed May 11, 2013
1 parent e3674e7 commit b6d929c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions architecture-examples/angularjs-perf/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# AngularJS (performance optimized) TodoMVC app

The normal AngularJS TodoMVC implemetation performs deep watching of the todos array object. This means that it keeps an in-memory copy of the complete array that is used for dirty checking in order to detect model mutations. For smaller applications such as TodoMVC, this is completely fine as one trades off a little memory and performance for the sake of simplicity.

In larger more complex applications however, where one might be working with 100s or 1000s of large objects one definitely should avoid using this approach. This implementation of the AngularJS app demonstrates the correct way to approach this problem when working in larger apps.

0 comments on commit b6d929c

Please sign in to comment.