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

Improve performance of find() and findFirst() when passed $nodes is empty array #953

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

samsonasik
Copy link
Contributor

No need to create FindingVisitor and NodeTraverser next when passed $nodes is empty array.

@nikic nikic merged commit 481fec4 into nikic:master Oct 7, 2023
9 checks passed
@samsonasik samsonasik deleted the improve-node-finder branch October 7, 2023 10:12
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.

None yet

2 participants