-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Compiler hangs with 2.5.0-dev.20170613 #16511
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
@sandersn Any updates? |
When I updated spica to master, it compiles in 14.6 seconds on my machine. Before #17984, it compiles in 26.92 seconds. Are you still seeing oomemory crashes? |
Yep, I got crashes when repeating code compiling, using |
When does the 2.2 minute compile time happen? Is it |
Here is my log:
You may not have compiled .test.ts files. |
Yes, when I did try gulp I ran
So it looks like the performance improves considerably with master, even when building tests. |
I ran CI tests with latest nightly build. https://travis-ci.org/falsandtru/spica/builds/268032017 On Linux, performance has improved but not enough as follows.
On OSX, improved but takes a long time, about 200%.
On Win locally, improved but takes a long time over 200%.
With v2.4.0, just a 9.6 sec. https://travis-ci.org/falsandtru/spica/jobs/264343733
Compile time is increased to over 700%. |
I forgot to mention this earlier, but have you tried |
I don't want to weaken type checks. And this package is also compiled from other projects like https://github.com/falsandtru/typed-dom and https://github.com/falsandtru/pjax-api. So you are requesting to use |
I have read your edited comment. Incremental compilation is nice to me but seems like not implemented. And performance gap on Win and Mac is a different problem. Can you reduce that? |
Sorry, I meant I'm looking at compilation times for complex code right now, but I haven't looked at platform-caused differences. |
I've compared that on Mac. So I don't think it is a result of platform difference. On OSX with TypeScript 2.6.0-dev.20170824: 40 sec https://travis-ci.org/falsandtru/spica/jobs/268032020
On OSX with TypeScript 2.4.0: 9.6 sec https://travis-ci.org/falsandtru/spica/jobs/264343733
This difference is made on the same platform. Probably Windows has a similar performance problem too. |
Seems like platform-based performance problem is resolved too by #18231. Thanks @sandersn @ahejlsberg . |
It was working until 2.4.0.
https://travis-ci.org/falsandtru/spica/jobs/242650734
TypeScript Version: 2.5.0-dev.20170613
Code
https://github.com/falsandtru/spica
Expected behavior:
pass
Actual behavior:
The text was updated successfully, but these errors were encountered: