Cache results of isGenericObjectType and isGenericIndexType#36622
Cache results of isGenericObjectType and isGenericIndexType#36622ahejlsberg merged 1 commit intomasterfrom
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
isGenericObjectTypeandisGenericIndexTypefor unions and intersections. This improves total compile time of the repro in #36564 by about 6.5%.