-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Closed
Copy link
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerarea: performanceIssues related to performanceIssues related to performancefeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Milestone
Description
🚀 feature request
Relevant Package
This feature request is for @angular/compiler-cli
Description
Thanks to the team my issue #33986 was fixed in 9rc4 build.
I open this feature request to ask (prioritize) others impovements regarding ngc rebuild, actually in large project 8-15s rebuild (on each file change) is pretty long.
Repro
I think I succeed to repro a rebuild slowness by multiply by 2 the number of components (now 817) in my last issue repro ng-speed-rebuild
Clone master branch, create ngcc ivy entry points, run npm run ngc to start the project.
Here's ngc-9rc9.cpuprofile of an isolated rebuild of the repro.
Describe the solution you'd like
Out of scope to me. From what I've learned/heard the long phase is: emitting and reparse all components on each rebuild
Describe alternatives you've considered
- I tried on two differents hardware (VM ubuntu & win10) rebuild time is pretty same.
- I can't be sure if ng-speed-rebuild repro is reflecting our private project because we have a lot of imports/exports/shared components. On our private project we have 850 components, if it can help here you are a
.cpuprofileof an isolated ngc rebuild of our private project private-project-ngc-9rc9.cpuprofile - NOTE: With CLI 9rc9
ng serverebuild is weird and really longer https://github.com/elvisbegovic/ng-speed-rebuild#ng-serve-9rc9-rebuild--83s---7s---5s---15s---17s---14s
Other
Might be related to #34796 (wait repro)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerarea: performanceIssues related to performanceIssues related to performancefeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues