You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it helps: main slowness points are (from compile-source-files):
ngProgram.loadNgStructureAsync
ngProgram.getNgSemanticDiagnostics (and a few other get...Diagnostics): here program.getSourceFiles() is iterated and tests with a regex (without ivy) the files. By it self it is fast by since the number of file is often ~720 (even for small projects, it comes from deps), then the regex test and extraction become way slower than a plain endsWith/subtring impl (see Make compiler-cli use less regexes for performances angular/angular#36148 (comment) for details). Guess some optimization is doable on ng-packgr side.
compile-ngc.transform does 2 compilations calling 2 which the "same" cost i spaid twice.
Side note: the rest of the compilation round trip is acceptable, it is really the ngc phase which is slow.
The text was updated successfully, but these errors were encountered:
Type of Issue
Description
Using watch mode should enable to have fast update roud trip, however ngc phase stays slow whereas other phases are acceptable.
How To Reproduce
Build a project with some dependencies and angular 9.0.x.
Expected Behaviour
A simple update (even just forcing a file save) should refresh the umd files in really max around 1s, today it is ~4-5s on my computer.
Version Information
If it helps: main slowness points are (from compile-source-files):
Side note: the rest of the compilation round trip is acceptable, it is really the ngc phase which is slow.
The text was updated successfully, but these errors were encountered: