-
-
Notifications
You must be signed in to change notification settings - Fork 243
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-incremental build 85% slower with V5 #506
Comments
Sorry for the late response - could you provide a reproduction repository? |
Also seeing this issue, it becomes really slow on |
@belaczek The latest TypeScript Beta version contains a fix that could potentially fix this issue. Could you test it? |
Thanks! From brief testing, it looks like the performance really did improve with the latest beta. Especially while having the incremental mode turned on. 👍 |
Current behavior
I experience a major increase in production build time after upgrading the library from 4.1.6 to 5.1.0. The project is quite large (~250k LOC) and since our CI doesn't preserve generated cache files between builds, we have omitted incremental build options.
Following is a comparison of configurations and compilation times between 4.1.6 and 5.1.0.
V4.1.6
Configuration
Compilation took: 47112.32 ms.
V5.1.0
Configuration
Build profile
From the build profile of V5 it seems like the emitting phase takes a lot of time even though
noEmit
is set to true.I suspect this might be related to #499.
Expected behavior
There isn't any significant performance decrease with the latest version of the library.
Steps to reproduce the issue
Run production build using the configuration above.
Environment
The text was updated successfully, but these errors were encountered: