Skip to content

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.

3 participants