Skip to content

DataProviderDataRule: Optimize hot path#277

Merged
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
staabm:opt
Feb 14, 2026
Merged

DataProviderDataRule: Optimize hot path#277
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
staabm:opt

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Feb 14, 2026

refs phpstan/phpstan#14072 (comment)

reduces the cost when analyzing non-test methods return/yield/yield-from which is a very very common case.

before PR

grafik

after PR

grafik

@ondrejmirtes ondrejmirtes merged commit 6ab598e into phpstan:2.0.x Feb 14, 2026
88 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the opt branch February 14, 2026 09:20
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