-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Slow compilation time for a hello world program (7/8 seconds) #39342
Comments
What other files/folders are in this directory? 77 other files implies something else is going on here |
You can diagnose the issue with the guidelines here: https://github.com/microsoft/TypeScript/wiki/Performance#investigating-issues |
Thanks for your reply. Indeed, there is a node_modules and a package.json in one of its parent directories (where my hello world is in the package.json just have @types/node as dependencies:
I still think its a lot of compilation time just to have @types/node. Is there any thing I can do to improve it, or am I out of luck? output with --listFiles flag:
when I move the script to another folder (e.g /tmp), I have a better compilation time (2.3s).
Is there anything I can do to improve that? |
You can set the |
Here's the new section: Controlling |
TypeScript Version: 3.9.5
Issue:
I created a simple hello world program, and it took 3s to compile with --skipLibCheck, and 7/8s without. is there a way to improve compile time?
output of my terminal:
Additional info:
OS: Windows 10
Intel Core i7-8565U CPU @ 1.80GHZ / 16GB RAM / SSD SATA
Terminal: WSL 2 (ubuntu)
Node version: v14.4.0
Expected behavior:
0.1s compilation.
Actual behavior:
3/4s second compilation, without skipLibCheck it goes to 7/8s.
Notes:
deno run hello.ts
), it takes 0.5s, which is good! is there a way to have something close to deno with tsc? maybe by using a v8 snapshot as they did?Related Issues:
Search Terms:
The text was updated successfully, but these errors were encountered: