-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Avoid quadratic trackSymbol explosion from new trackedSymbols #56404
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
@typescript-bot test top200 @typescript-bot perf test this |
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at 7aeb7d8. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 7aeb7d8. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the tarball bundle task on this PR at 7aeb7d8. You can monitor the build here. |
Heya @jakebailey, I've started to run the regular perf test suite on this PR at 7aeb7d8. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 7aeb7d8. You can monitor the build here. Update: The results are in! |
@JoshuaKGoldberg there should be a tarball for you to test out in a bit. |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
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.
This seems correct but do we have a test case to add..
@jakebailey Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
Hey @jakebailey, the results of running the DT tests are ready. |
Confirmed this fixes it for us, thanks so much @jakebailey! Btw as a heads up for anybody else trying on typescript-eslint / typescript-eslint/typescript-eslint#7923, switching to
|
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
Thanks for confirming. I'll need to try and figure out some sort of minimal repro for this... Which I don't expect to be easy. |
#51721 added a new
trackedSymbols
prop to serialized types, which when seen is used to pull tracked symbols from one context into another. But, if you look up a symbol in the same context, you'll keep pushing symbols onto yourself over and over when they're already tracked. So, if we see that the list is exactly the same, don't actually iterate over it.Fixes #56371