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] Remove NODES_TO_MATCH constant on RemoveNonExistingVarAnnotationRector #4267

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

samsonasik
Copy link
Member

RemoveNonExistingVarAnnotationRector was using generic Node as getNodeTypes() which can be any node, and then verify against NODES_TO_MATCH.

This PR move this to the getNodeTypes() to be checked directly to improve performance.

@samsonasik samsonasik merged commit 392898c into main Jun 18, 2023
42 checks passed
@samsonasik samsonasik deleted the remove-node branch June 18, 2023 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant