-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Improve LocalConstantFinder performance #3652
Conversation
c26c024
to
5b96c09
Compare
return null; | ||
} | ||
$const = $this->findConstantByName($class, $constatName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be moved down to last statement to improve performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
6cb1de3
to
d975304
Compare
Thank you @staabm |
not sure why test randomly crash |
I have no idea either. looks like a bug in php-src or even deeper |
* Improve LocalConstantFinder performance * simplify * typo * fix typo
Do cheaper checks first. Similar to #3651