-
-
Notifications
You must be signed in to change notification settings - Fork 246
useTypescriptIncrementalApi increases initial build time #211
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
Comments
I don't think you can be using the version of the plugin specified as the plugin does not support multiple workers with the incremental build API mode. Do you want to double check? Also, check out this example: https://github.com/TypeStrong/ts-loader/tree/master/examples/fork-ts-checker-webpack-plugin |
Hi, The multiple worker is without useTypescriptIncrementalApi flag set, just to illustrate different settings and results. Settings are like under setup section. |
Do you have the latest version? I can't guarantee it's going to be faster for you but my own experience has been significant. About 4 times faster. Suggest you change your config to:
|
Hi, @Kavorka79.
Also, to give you some more history of
Currently, I have a feeling that performance of typescript incremental compilation depends on how sources are organized: less globals -> faster incremental compilation. |
Hi, are any updates on this issue ? I have about 6k files in my repo. Compilation with "useTypescriptIncrementalApi: true" takes 300+s without linters, when with "useTypescriptIncrementalApi: false" about 90s with a single worker TS v3.5.3 |
Just FYI, I was recently trying to get some performance measurements for webpack+TS setup, but discovered that webpack watch mode time grows linearly with the number of files. I found this extremely discouraging and didn't do any further tests/investigation. @Kavorka79, could you try running |
There is a related issue in TypeScript repo: microsoft/TypeScript#34119 If you have a problem with slow initial build with |
@Kavorka79 , @IIIristraM |
Hi,
I wanted to try the new option useTypescriptIncrementalApi. But our build time was as follows:
Incremental was only change to one file, so a little strange to see the difference between 4 workers and 1 worker. Any insights?
We got no incremental build time improvment and a initial build time slow down?
setup:
tsconfig.js:
package.js
The text was updated successfully, but these errors were encountered: