Skip to content

Faster UnionType->getFiniteTypes() - #6210

Merged
staabm merged 3 commits into
phpstan:2.2.xfrom
staabm:fast-union-get-types
Aug 11, 2026
Merged

Faster UnionType->getFiniteTypes()#6210
staabm merged 3 commits into
phpstan:2.2.xfrom
staabm:fast-union-get-types

Conversation

@staabm

@staabm staabm commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

repro from phpstan/phpstan#15004

n before PR after PR
250 6,92s 4,15s
400 26,1s 14,5s

PHPBench CI:

grafik

@staabm
staabm marked this pull request as ready for review August 11, 2026 18:53
@phpstan-bot

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@staabm
staabm merged commit f69c881 into phpstan:2.2.x Aug 11, 2026
1120 of 1123 checks passed
@staabm
staabm deleted the fast-union-get-types branch August 11, 2026 18:54
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