title: How to speed up an AngularJS Application?
body: <p>I have an AngularJS app with a paged grid (two nested ng-repeat). One page has approximately 25x40 input elements. In the beginning that made 1000 bindings, the paging performance was acceptable.</p>
  
  <p>But then the complexity of page grow: dynamic classes, varying context menues, conditional content for each cell of the grid. And with estimated 6000 bindings (6 per input element) the paging got unusable slow.</p>
  
  <p>My question is: how do I generally approach performance problems in AngularJS?
  The obvious first step ist to measure. But the results of the Chrome Profiler do not tell me that much, far from knowing how to proceed.</p>
  
  <pre><code> Self      Total                           Function
  -----------------------------------------------------------------
  24 ms    2.79 s    angular.js:7997         Scope.$digest
   1 ms       1 ms   controllers.js:365      setViewportData
  16 ms     692 ms   angular.js:13968        ngRepeatWatch
   8 ms      22 ms   angular.js:6439         extend.literal
   9 ms    1.22 s    angular.js:14268        ngSwitchWatchAction
  16 ms      45 ms   angular.js:12436        ngModelWatch
   0        621 ms   angular-ui-4.0.js:264   initDateWidget
   0         13 ms   angular.js:12859        ngClassWatchAction
   0         70 ms   angular.js:14184        ngStyleWatchAction
   1 ms       5 ms   angular-ui-4.0.js:261   getOptions
   0         16 ms   angular.js:579          copy
   0          1 ms   angular.js:4558         interpolateFnWatchAction
   1 ms       2 ms   angular.js:5981         token.fn.extend.assign
   0         37 ms   angular.js:8151         Scope.$eval
   1 ms       1 ms   angular.js:6137         extend.constant
  14 ms      16 ms   angular.js:651          equals
   1 ms       1 ms   angular.js:4939         $interpolate.fn
  </code></pre>
  
  <p>Aside: is there any chance that 'Object.observe()' will speed up things in the future (ignoring 'initDateWidget', that's obviously a different topic)?</p>