Skip to content

Memoize ArrayType->isList()#5680

Merged
staabm merged 1 commit into
phpstan:2.1.xfrom
staabm:micro14
May 16, 2026
Merged

Memoize ArrayType->isList()#5680
staabm merged 1 commit into
phpstan:2.1.xfrom
staabm:micro14

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented May 16, 2026

micro optimization for ~8-10% faster repro in phpstan/phpstan#14624

php bin/phpstan analyse -vv --debug bug-14624.php

before this PR ~20s
after this PR ~18,5s

just fixing a low hanging fruit. of course we need a more general fix to close the referenced issue

@staabm staabm requested a review from VincentLanglet May 16, 2026 15:07
@staabm staabm merged commit c6fb24e into phpstan:2.1.x May 16, 2026
658 of 660 checks passed
@staabm staabm deleted the micro14 branch May 16, 2026 15:17
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