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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow incremental compilation (tsc --watch) #11321

Closed
MarkChrisLevy opened this issue Oct 3, 2016 · 1 comment
Closed

Very slow incremental compilation (tsc --watch) #11321

MarkChrisLevy opened this issue Oct 3, 2016 · 1 comment

Comments

@MarkChrisLevy
Copy link

MarkChrisLevy commented Oct 3, 2016

TypeScript Version: 1.8.0 / nightly (2.0.0-dev.201xxxxx)
2.0.3
Code
I see massive slow down in incremental compilation (tsc --watch). Change in one file takes 9-10 (or even more) seconds to compile, in 1.8 was much much faster.

Our project is Angular2/Ionic2 app. We made a switch to newest release of Ionic, which uses latest Angular2.

I just made a simple test. Created new file (test.ts), with class declaration class A {prop: number} and added to my project. I run tsc --watch --traceResolution and after initial compilation I made a change in test.ts - thanks to trace resolution I've noticed, that compiler is checking all the files in my project and trying to resolve modules, that are used in those files. Obviously that takes time - I don't know whether that should work like this and if that didn't change from 1.8, but it looks a bit weird.

Expected behavior:
Incremental compilation should work fast, compiling only changed file and possibly files, that are some way related to that file.

Actual behavior:
Compilation of a file (with one line of code, no imports, no exports) takes many seconds (9-15 sec).

@MarkChrisLevy
Copy link
Author

Duplicate of #10018.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant