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

[DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early #2193

Merged
merged 3 commits into from
Apr 29, 2022

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Apr 29, 2022

on loop, when we found a key that start to be removed, we return early after array_splice the stmts.

@samsonasik samsonasik changed the title [DeadCode] Improve RemoveUnreachableStatementRector performance by return array_pop early [DeadCode] Improve RemoveUnreachableStatementRector performance by return array_splice early Apr 29, 2022
@samsonasik samsonasik changed the title [DeadCode] Improve RemoveUnreachableStatementRector performance by return array_splice early [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early Apr 29, 2022
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit 4d7c087 into main Apr 29, 2022
@TomasVotruba TomasVotruba deleted the improve-unreacable branch April 29, 2022 06:34
@TomasVotruba
Copy link
Member

👍

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