GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Fix slowdown in type inference involving union types by ahejlsberg · Pull Request #5920 · microsoft/TypeScript Conversation
Member
Fixes #5849. When inferring types, if the source and target are both non-generic object types we don't descend into the types because it we know it won't produce inferences. However, in 1.7 all classes are generic because of the implied this type parameter, so we ended up doing a lot more work. With this PR, we check that the type references actually have explicitly specified type arguments and only descend into the types then. I have manually verified that performance is back to where it was before.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
|
👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fix slowdown in type inference involving union types
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.