Skip to content

Faster and simpler TrinaryLogic->lazyExtremeIdentity() #2083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Dec 11, 2022

8% speedup for snippet in phpstan/phpstan#8504 (comment)


grafik

@staabm staabm force-pushed the fast-extreme-identity branch from 4ae7442 to 0364cbc Compare December 11, 2022 19:44
@ondrejmirtes
Copy link
Member

Wow, this is extremely smart, it looks like the function almost doesn't do anything 😀

@ondrejmirtes ondrejmirtes merged commit 4d7421b into phpstan:1.9.x Dec 11, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the fast-extreme-identity branch December 11, 2022 20:01
@staabm
Copy link
Contributor Author

staabm commented Dec 11, 2022

it looks like the function almost doesn't do anything 😀

hehe, I was also pleasantly suprised. as always: you need to stare at code for several hours until you realize the solution can be that simple :)

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