Skip to content

Performance: reduce parent attribute usage on BetterNodeFinder#3504

Merged
samsonasik merged 2 commits intomainfrom
reduce-parent-type-call-bnf
Mar 22, 2023
Merged

Performance: reduce parent attribute usage on BetterNodeFinder#3504
samsonasik merged 2 commits intomainfrom
reduce-parent-type-call-bnf

Conversation

@samsonasik
Copy link
Member

Replace parent verify usage on BetterNodeFinder::findClassMethodAssignsToLocalProperty() with SimpleCallableNodeTraverser to allow to not traverse on anonymous classes and inner function

@samsonasik samsonasik changed the title Performance: reduce parent type call usage on BetterNodeFinder Performance: reduce parent attribute usage on BetterNodeFinder Mar 22, 2023
@samsonasik
Copy link
Member Author

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

@samsonasik
Copy link
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 5c985c8 into main Mar 22, 2023
@samsonasik samsonasik deleted the reduce-parent-type-call-bnf branch March 22, 2023 18:05
@TomasVotruba
Copy link
Member

This is very nice Abdul 👏 😄

samsonasik added a commit that referenced this pull request May 8, 2023
* Performance: reduce parent type call usage on BetterNodeFinder

* [ci-review] Rector Rectify

---------

Co-authored-by: GitHub Action <actions@github.com>
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.

3 participants