-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Too much compile time to resolve a complex function signiture definition. #7082
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
@vladima do you think this is related to the other perf regression we tracked down a couple weeks ago? |
As an additional information, I tried to upgrade to This is the comparison (sorry, I forgot diagnostic options...):
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. |
Fix is checked in and should be available on today's nightly build: |
okay, I'll try |
Seems that today's |
This is the result with
|
#7372 ports this fix to the next point release |
Example Environment
Abstraction
I found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition when I update rxjs to
5.0.0-beta.2
from5.0.0-beta.1
(karen-irc/karen#574).But after this commit, the compile time was recovered to the previous one.
[email protected] has some pretty complex type signitured functions:
combineLatest()
zip()
I know the type inference is not omnipotent, it need a complex computations, and this issue may be a corner-case of TypeScript compiler.
But I also think this would be a problem if libraries having a complex type signatures rises in the future.
Could you resolve this problem?
The text was updated successfully, but these errors were encountered: