Skip to content

NGC rebuild performance improvements (Ivy & AoT) #34867

@elvisbegovic

Description

@elvisbegovic

🚀 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

  1. I tried on two differents hardware (VM ubuntu & win10) rebuild time is pretty same.
  2. 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 .cpuprofile of an isolated ngc rebuild of our private project private-project-ngc-9rc9.cpuprofile
  3. NOTE: With CLI 9rc9 ng serve rebuild 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)

Metadata

Metadata

Assignees

Labels

area: compilerIssues related to `ngc`, Angular's template compilerarea: performanceIssues related to performancefeatureLabel used to distinguish feature request from other issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions