Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf regression in @ngtools/webpack 8.0.2 #14719

Closed
mattlewis92 opened this issue Jun 10, 2019 · 7 comments 路 Fixed by #14720
Closed

Perf regression in @ngtools/webpack 8.0.2 #14719

mattlewis92 opened this issue Jun 10, 2019 · 7 comments 路 Fixed by #14720
Labels
area: ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity4: memory/performance type: bug/fix
Milestone

Comments

@mattlewis92
Copy link
Contributor

馃悶 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 8.0.1

Description

When upgrading to the latest cli I noticed that our local rebuild times in JIT went from ~7s to ~24s. I managed to narrow it down to this commit: d61b252 Manually reverting in the source of ngtools/webpack and the re-build times went back to normal

馃敩 Minimal Reproduction

Sorry I can't really share our repo, but I hope that it's enough to identify the commit that caused the regression.

馃敟 Exception or Error

N/A

馃實 Your Environment


Angular CLI: 8.0.2
Node: 12.4.0
OS: darwin x64
Angular: 8.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.2
@angular-devkit/build-angular     0.800.2
@angular-devkit/build-optimizer   0.800.2
@angular-devkit/build-webpack     0.800.2
@angular-devkit/core              8.0.2
@angular-devkit/schematics        8.0.2
@angular/cli                      8.0.2
@ngtools/webpack                  8.0.2
@schematics/angular               8.0.2
@schematics/update                0.800.2
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0

Anything else relevant?
N/A

@alan-agius4
Copy link
Collaborator

Hi, can you confirm if the rebuilds increase only when the previous compilation had an error, or the increase is constant for you?

Thanks.

@ngbot ngbot bot added this to the needsTriage milestone Jun 10, 2019
@alan-agius4 alan-agius4 added freq1: low Only reported by a handful of users who observe it rarely type: bug/fix labels Jun 10, 2019
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jun 10, 2019
@alan-agius4 alan-agius4 self-assigned this Jun 10, 2019
@mattlewis92
Copy link
Contributor Author

mattlewis92 commented Jun 10, 2019

The increase is constant for me, every compilation previously succeeded without error.

@alan-agius4
Copy link
Collaborator

Thanks for the info. That is strange cause that flag should get set to false upon a successful build and true upon an invalid build.

I鈥檒l try to look at it tomorrow and see if I am able to replicate.

@mattlewis92
Copy link
Contributor Author

Sweet, thanks! Let me know if you can't reproduce and I'll debug locally to see why that flag's being set to true.

@mattlewis92
Copy link
Contributor Author

Thanks for fixing this so fast! 馃槃

@kondi
Copy link

kondi commented Jun 14, 2019

The fix does not look perfect, see #14775

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
@clydin clydin removed their assignment Jun 28, 2022
ikjelle pushed a commit to ikjelle/angular-cli that referenced this issue Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity4: memory/performance type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants