Skip to content

Cache IntersectionType results#4836

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:inter-cache
Jan 30, 2026
Merged

Cache IntersectionType results#4836
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:inter-cache

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 30, 2026

cache results of most invoked IntersectionType-methods because IntersectionType->intersectResults shows up in profiles:

grafik

diff

grafik

@ondrejmirtes ondrejmirtes merged commit 2d4be1d into phpstan:2.1.x Jan 30, 2026
340 of 347 checks passed
@ondrejmirtes
Copy link
Member

Nice, thank you!

@staabm staabm deleted the inter-cache branch January 30, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants