Skip to content

UnionType: inline array_map() call - #4765

Merged
ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
staabm:savemem
Jan 15, 2026
Merged

ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
staabm:savemem

Conversation

@staabm

@staabm staabm commented Jan 15, 2026 •

Copy link
Copy Markdown
Contributor

the method is called often enough that this change leads to a 0,5% memory decrease

before this PR

Used memory: 396.59 MB

after this PR

Used memory: 394.59 MB

@ondrejmirtes
ondrejmirtes merged commit a86da0b into phpstan:2.1.x Jan 15, 2026
338 of 357 checks passed
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you!

@staabm
staabm deleted the savemem branch January 15, 2026 10:08
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