Skip to content

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