Skip to content

TrinaryLogic: Prevent unnecessary work#4784

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:less-work7
Jan 19, 2026
Merged

TrinaryLogic: Prevent unnecessary work#4784
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:less-work7

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jan 19, 2026

prevent unnecessary method calls in a hot path


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

lazyMaxMin calls yes() 1.1 million times

grafik

@ondrejmirtes ondrejmirtes merged commit 916e2d7 into phpstan:2.1.x Jan 19, 2026
723 of 750 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the less-work7 branch January 19, 2026 08:26
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