Back to Developer Roadmap

Slow Computations

src/data/roadmaps/angular/content/[email protected]

4.0658 B
Original Source

Slow Computations

On every change detection cycle, Angular synchronously evaluates all template expressions in components based on their detection strategy and executes the ngDoCheck, ngAfterContentChecked, ngAfterViewChecked, and ngOnChanges lifecycle hooks. To remove slow computations, you can optimize algorithms, cache data with pure pipes or memoization, and limit lifecycle hook usage.

Visit the following resources to learn more: