What the project looks like
The process of project loading
1. Major Garbage Collector
2. Minor GC
3. DOM GC
Own check and update method
service.render - methods to rerender only if the properties changes.
ngrx emit - action that can provide specific behavior
CheckAndUpdateView
Services, services, services
Switch - case loader
When loading is needed
10000 items ~ 2,5 sec 30 items ~ 300 ms
Load only new chunks
Times decrease on reloading
cdRef.detectChanges()
set rerender on command from service
parseHTML / html text
300 ms -> 80 ms
Search for timecode
Step by step search
Object faster then array
How to decide what is faster
TEST
By Sergey Shalyapin
Front-End Developer