Skip to content

Slower compilation when using @ngtools/webpack@7.1.0 #13102

@filipesilva

Description

@filipesilva

Initially reported in angular/angular#26674 (comment) by @sod


hm indeed, just updating ngtools gives me the slowdown. Also using angular 7.1 with old ngtools 7.0.7 is significantly faster.

versions 1st run 2nd run 3rd run 4th run 5th run
@angular 7.0.4, @ngtools 7.0.7 31s 15s 7s 5s 5s
@angular 7.0.4, @ngtools 7.1.0 29s 14.5s 15.5s 12s 12s
@angular 7.1.1, @ngtools 7.1.0 29s 13.5s 13.5s 15s 16s
@angular 7.1.1, @ngtools 7.0.7 28s 12.8s 7s 5s 4.2s

Activity

added this to the Backlog milestone on Nov 30, 2018
sod

sod commented on Nov 30, 2018

@sod

this is how the chart looks in the 4th run with 7.0.7
image

and this with 7.1.0
image

The 7.0 log is 9MB, the 7.1 log is 75MB :D

sod

sod commented on Nov 30, 2018

@sod

Seems like diagnostics runs even though that should run in a seperate process?

sod

sod commented on Nov 30, 2018

@sod

I guess #12824 caused this? I'm not sure if this is the intended behavior. An opt-out would be nice.

hccampos

hccampos commented on Dec 5, 2018

@hccampos

Just another data point here:

Angular ngtools 1st 2nd 3rd
@angular 7.1.1 @ngtools 7.0.7 25317ms 5131ms 4316ms
@angular 7.1.1 @ngtools 7.1.0 36403ms 27959ms 27833ms
RidhwanDev

RidhwanDev commented on Dec 6, 2018

@RidhwanDev

Hi, How can i downgrade @ngTools to 7.0.7?

Thanks

sod

sod commented on Dec 6, 2018

@sod

‘npm i @ngtools/webpack@7.0‘

33 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @jochenjonc@hansl@sod@Wykks@HarelM

      Issue actions

        Slower compilation when using @ngtools/webpack@7.1.0 · Issue #13102 · angular/angular-cli