Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Microarchitecture using Angular 4 as an example

Microarchitecture using Angular 4 as an example

Kirill Gusyatin, JS developer at eKreative

GDG Cherkasy

May 29, 2017
Tweet

More Decks by GDG Cherkasy

Other Decks in Programming

Transcript

  1. “Simple” NgFor Angular’s NgFor directive is sometimes a little bit

    too smart. A simpler version of it could be faster
  2. Detach change detectors Another option is to detach all change

    detectors from the tree and only perform change detection for the components that is actually changing
  3. General (medians) Max Min Initial code 28ms 19ms ChangeDetectionStrategy.OnPush 16ms

    13ms “Simple” NgFor 16ms 10ms Detach change detectors 0.606ms 0.054ms