Skip to content
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

[Performance] Using cheap check first on UndefinedVariableResolver::shouldSkipVariable() #3643

Merged
merged 1 commit into from Apr 21, 2023

Conversation

samsonasik
Copy link
Member

@staabm this is based on your suggestion on https://github.com/rectorphp/rector-src/pull/3639/files#r1172624363 , I moved check cheap first before check previous node.

@samsonasik samsonasik changed the title [Performance] Using cheap chekc first on UndefinedVariableResolver::shouldSkipVariable() [Performance] Using cheap check first on UndefinedVariableResolver::shouldSkipVariable() Apr 21, 2023
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks

@samsonasik
Copy link
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit ae99f13 into main Apr 21, 2023
39 checks passed
@samsonasik samsonasik deleted the cheap-first branch April 21, 2023 07:29
samsonasik added a commit that referenced this pull request May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants