-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add union and intersection types to unions by type list id #54554
base: main
Are you sure you want to change the base?
Conversation
@typescript-bot perf test this |
Heya @weswigham, I've started to run the perf test suite on this PR at 0406af1. You can monitor the build here. Update: The results are in! |
@weswigham Here they are:
CompilerComparison Report - main..54554
System
Hosts
Scenarios
TSServerComparison Report - main..54554
System
Hosts
Scenarios
StartupComparison Report - main..54554
System
Hosts
Scenarios
Developer Information: |
Does this change make sense if Strada adopts the same type ordering scheme as Corsa? If not, should we close this PR? |
I think #61399 would be the equivalent for that if we do take it. |
Rather than type id. This makes identical lists with differing alias symbols be recognized as equivalent (and therefore not cost anything to construct). This should be most notable with control flow, which often strips the alias symbol from a union in the process of stripping it apart and putting it back together.
Fixes #54146