How Do I Measure the Performance of my AngularJS app's digest Cycle?

后端 未结 8 2533
说谎
说谎 2020-11-28 18:04

What is a simple way to measure the duration of the angularjs digest cycle? There exist various methods to analyze the performance of the digest cycle, however each comes wi

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 18:42

    the tools above describe already gave you the idea of measuring the performance of digest loop Most importants points for increasing the performance of digest cycle are

    • Monitor closely scroll events to hide all invisible elements and
      greatly reduce the number of watchers.

    • Have manageable $digest cycles for all other events.

提交回复
热议问题