-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Handle huge unions better in createUnionOrIntersectionProperty #30411
Handle huge unions better in createUnionOrIntersectionProperty #30411
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this change performance on union-heavy code like our compiler-unions case?
@typescript-bot perf test 🕙 |
Heya @weswigham, I've started to run the perf test suite on this PR at 44e0aa0. You can monitor the build here. It should now contribute to this PR's status checks. |
@sandersn There's no perf diff between this branch and |
Fixes #29834 - or at least makes it more tolerable.
Timeline before this fix, roughly 7 seconds until first results for a quickinfo relying on the 1MB data object:
Timeline after this fix for the same info:
Down to 2s. (Specifically, time in
createUnionOrIntersectionProperty
was cut from 5s down to 340ms)That's a pretty big improvement for just fixing property creation so it's not O(n^2) with property count. 😄
There's not really a test associated with this change because, well, perf...