Skip to content

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

Merged
samsonasik merged 1 commit intomainfrom
cheap-first
Apr 21, 2023
Merged

[Performance] Using cheap check first on UndefinedVariableResolver::shouldSkipVariable()#3643
samsonasik merged 1 commit intomainfrom
cheap-first

Conversation

@samsonasik
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit ae99f13 into main Apr 21, 2023
@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

Development

Successfully merging this pull request may close these issues.

2 participants