-
Notifications
You must be signed in to change notification settings - Fork 12.8k
do not make inferences with the same source\target pair multiple times #7163
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
Conversation
as a subsequent step we can set the maximum depth of nesting when we explore the structure of types during type inference. This approach seems to be promising and it scales better - these are numbers for the same test with max depth = 5
However before moving forward I'd like to verify that setting max depth does not lead to serious regressions in type inference in our real world code test suite. |
LGTM, others should take a look |
👍 |
no, #7097 is not fixed with this change |
Oh well. :( 👍, but with the caveat that my grasp on the caching mechanism is not too strong. |
do not make inferences with the same source\target pair multiple times
do not make inferences with the same source\target pair multiple times
partial fix for #7081
Total compilation time for an original repro case (above) has dropped from +20 minutes to 1.5s (check time: ~0.9s ). However caching is local to every inference session so it still scales pretty badly
Note: I'm not sure how to write a self-contained test for this issue without including
rx.all.d.ts
andimmutable.d.ts