-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Should we need to consider the compile speed in a product code with type definitions of rx v5? #1356
Comments
Build time should be one of topics may need to track down further, up until now it was mainly focused on build time of library itself instead of any consumer perspective. longer than 2h of build time seems really serious, is there way to replicate it with some simple code snippet can be shared? As an initial thought (rough guess though) I think this is somewhat related with type inference by references inside of codebases, not by complex type signatures. RxJS4's type definition already have complex signature more than what current RxJS5 does have. Still need further isolation to see what's causing this. |
/cc @david-driscoll also to share, he might be interested as well. |
@saneyuki do you have multiple different project references to RxJS (nested modules, etc?). I noticed a similar issue (see microsoft/TypeScript#5695) this may be the problem you're seeing, but I'm not entirely certain. I haven't gotten back to it since my last comment there, but it sounds there is a possible workaround (less than ideal though) |
Ugh, I still have not found the simple test case for 2hr~ worst case.... By the way, in other my personal project (which is different from the above 2hr~ project), this commit improves the compile time dramatically about ~18x improvement. (see more details: karen-irc/karen#574 (comment))
I agree. We need to continue to tracking this.
No. I just working to upgrade to v5 from v4, then I switched to v5 completely. |
I've just tried to introduce RxJS v5 to my small nodejs project
MacBook Pro (Retina, 13-inch, Late 2013), 2,4 GHz Intel Core i5, 8 GB |
I've been talking to the TypeScript folks, and we have a few fixes that will drastically improve this. |
I confirmed it's a time that we can close this issue. Thank you @vladima and all! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Notice
Summary
As an additional information, I tried to upgrade to
[email protected]
from[email protected]
for the private code of my day job.This is the comparison (sorry, I forgot diagnostic options...):
[email protected]
[email protected]
This upgrading needs some migration to my code thus this is not simply comparison. But this indicates that the type definitions of rxjs v5 is more complex than v4.
By this result, I feel we might to need to consider the compile speed in a product code with type definitions of rx v5. Of course, I strongly hope TypeScript team would fix this problem in the compiler.
How should we resolve this?
The text was updated successfully, but these errors were encountered: