Skip to content

Improve NodeComparator performance#3659

Merged
TomasVotruba merged 2 commits intorectorphp:mainfrom
staabm:faster-comparator
Apr 22, 2023
Merged

Improve NodeComparator performance#3659
TomasVotruba merged 2 commits intorectorphp:mainfrom
staabm:faster-comparator

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Apr 22, 2023

No description provided.

if (!is_array($firstNode)) {
return false;
}
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

goal of the changes is that we prevent the costly AST-print-compare as often as possible

@staabm staabm marked this pull request as ready for review April 22, 2023 17:37
@staabm staabm requested a review from TomasVotruba as a code owner April 22, 2023 17:37
@TomasVotruba TomasVotruba merged commit 731baeb into rectorphp:main Apr 22, 2023
@TomasVotruba
Copy link
Copy Markdown
Member

Thanks 👍

@staabm staabm deleted the faster-comparator branch April 23, 2023 05:29
samsonasik pushed 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