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

fix: Optimize removal of unreachable nodes #486

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

mwcampbell
Copy link
Contributor

This eliminates an unnecessary step involving temporary storage. I originally wrote that code when I was still quite new to Rust and never revisited the assumption that to_remove was unnecessary.

I also renamed the variable that tracks unreachable nodes and the function that traverses them.

@mwcampbell mwcampbell force-pushed the optimize-remove-unreachable branch from 9404aad to 869a88b Compare December 8, 2024 12:23
Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

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

Looks good to me. Please rebase.

@DataTriny DataTriny merged commit 93d0a72 into main Dec 8, 2024
9 checks passed
@DataTriny DataTriny deleted the optimize-remove-unreachable branch December 8, 2024 12:27
@github-actions github-actions bot mentioned this pull request Dec 8, 2024
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