ExpressionTypeHolder: re-use objects more often by staabm · Pull Request #4801 · phpstan/phpstan-src

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

mspirkov reacted with rocket emoji

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@staabm @ondrejmirtes