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
{{ message }}
Repository navigation
v7.rc.0 serving 2x - 3x slower than stable versions on my projects #12432
Update from 6.2.3 to v7 rc0, it is first time to test cli v7 in my projet.
It is slower even when serving without sourcemaps.
So ng s or ng s --sourceMap=false same refresh cli server around 10seconds while it was around 2-3s before.
I'm experiencing similar/same behavior. In my case the compiler gets stuck on my sass files for a really long time. Prior to this 7.rc.0 version it went through my sass in few seconds, now it takes up to 2-3 minutes. Eventually, it does work fine though.
@istiti glad to hear the rebuild times are back to what they should be! extractLicenses being on was a bug on our side though, it didn't have anything to do with your configuration. We'll be looking at the assets issue in the future as well.
@Enngage sorry I forgot that your problem was somewhat different. You can see the increased build times on initial builds, correct?
Then you should be able to do ng build --prod --profile with the latest RC (@angular-devkit/build-angular@0.9.0-rc.2). This will create 2 json files at the root of the project. Can you send those over please?
The rc.3 should contain the fix I mentioned about licenses not being extracted by default. I think that was the last bit to restore rebuilds to parity.
@istiti@Enngage just wanted to say thank you again for taking the time to take the profiles and try to get to the bottom of this with us. It's really hard to find some performance regressions as sometimes they don't manifest in all projects.
@Enngage if you get around to making that new profile, can you open a new issue and indicate what types of builds it happens on, and also add the details about the scss please?
Just hopping in on this.
I was getting an error (call_and_retry_last allocation) when I would ng build --prod my project, ng serve and ng build worked fine.
The ng build --prod would run forever until it threw this error.
I updated to the latest node.js and turned sourceMap: true to sourceMap: false in both tsconfig.js and angular.json.
I think that was the last bit to restore rebuilds to parity.
@filipesilva In my project the rebuild time with @ngtools/webpack7.0.7 is 644.6 ms (avg of 5 stable), but with version 7.1.3 it is 1476.6 ms. I would say in this case this is not in parity (2.3x slowdown), do you agree? Shall I provide something to profile or is it known issue? (#13102 maybe?)
Activity
filipesilva commentedon Oct 2, 2018
Heya @istiti thanks for trying you the 7.0 RC!
I'm going to try and repro this regression and see if I can get similar numbers to yours, then see what's causing it.
Enngage commentedon Oct 2, 2018
I'm experiencing similar/same behavior. In my case the compiler gets stuck on my sass files for a really long time. Prior to this 7.rc.0 version it went through my sass in few seconds, now it takes up to 2-3 minutes. Eventually, it does work fine though.
filipesilva commentedon Oct 2, 2018
@Enngage do you have a reproduction I can look at?
30 remaining items
fix(@angular-devkit/build-angular): fix extractLicenses default
fix(@angular-devkit/build-angular): fix extractLicenses default
filipesilva commentedon Oct 10, 2018
@istiti glad to hear the rebuild times are back to what they should be!
extractLicensesbeing on was a bug on our side though, it didn't have anything to do with your configuration. We'll be looking at the assets issue in the future as well.filipesilva commentedon Oct 10, 2018
@Enngage sorry I forgot that your problem was somewhat different. You can see the increased build times on initial builds, correct?
Then you should be able to do
ng build --prod --profilewith the latest RC (@angular-devkit/build-angular@0.9.0-rc.2). This will create 2 json files at the root of the project. Can you send those over please?fix(@angular-devkit/build-angular): fix extractLicenses default (#12546)
fix(@angular-devkit/build-angular): fix extractLicenses default (#12546)
filipesilva commentedon Oct 12, 2018
The
rc.3should contain the fix I mentioned about licenses not being extracted by default. I think that was the last bit to restore rebuilds to parity.elvisbegovic commentedon Oct 12, 2018
I agree i mark it as closed. Apologize me i didnt follow @Enngage problem, reopen it if needed
filipesilva commentedon Oct 12, 2018
@istiti @Enngage just wanted to say thank you again for taking the time to take the profiles and try to get to the bottom of this with us. It's really hard to find some performance regressions as sometimes they don't manifest in all projects.
@Enngage if you get around to making that new profile, can you open a new issue and indicate what types of builds it happens on, and also add the details about the scss please?
Hypenate commentedon Nov 23, 2018
Just hopping in on this.
I was getting an error (call_and_retry_last allocation) when I would
ng build --prodmy project,ng serveandng buildworked fine.The
ng build --prodwould run forever until it threw this error.I updated to the latest node.js and turned sourceMap: true to sourceMap: false in both tsconfig.js and angular.json.
kondi commentedon Dec 17, 2018
@filipesilva In my project the rebuild time with
@ngtools/webpack7.0.7is 644.6 ms (avg of 5 stable), but with version7.1.3it is 1476.6 ms. I would say in this case this is not in parity (2.3x slowdown), do you agree? Shall I provide something to profile or is it known issue? (#13102 maybe?)filipesilva commentedon Dec 17, 2018
@kondi that's another (different) regression, we are looking at it in #13102.
angular-automatic-lock-bot commentedon Sep 9, 2019
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.