-
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
Cache results of isGenericObjectType and isGenericIndexType #36622
Conversation
@typescript-bot perf test this |
Heya @ahejlsberg, I've started to run the perf test suite on this PR at a0546fc. You can monitor the build here. It should now contribute to this PR's status checks. Update: The results are in! |
@ahejlsberg Here they are:Comparison Report - master..36622
System
Hosts
Scenarios
|
@ahejlsberg How do these predicates relate to Context: |
The The In scenarios that are heavy on union and intersection type instantiation, it might make sense to first call |
Follow-up questions:
Edit - offline responses:
|
With this PR we cache the results of
isGenericObjectType
andisGenericIndexType
for unions and intersections. This improves total compile time of the repro in #36564 by about 6.5%.