Skip to content

ExpressionTypeHolder: re-use objects more often#4801

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:fast-expt
Jan 22, 2026
Merged

ExpressionTypeHolder: re-use objects more often#4801
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:fast-expt

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 22, 2026

php bin/phpstan analyse src/Analyser/ src/Rules/ -v --debug

before this PR:

Elapsed time: 28.18 seconds
Used memory: 443.66 MB

after this PR:

Elapsed time: 28.09 seconds
Used memory: 434.81 MB

=> saves 9 MB memory

@ondrejmirtes ondrejmirtes merged commit d532879 into phpstan:2.1.x Jan 22, 2026
631 of 638 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the fast-expt branch January 22, 2026 11:18
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