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

Tree iteration: Make skipping ahead more efficient #1004

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

joshtriplett
Copy link
Member

Implement TreeIter::nth to make jumping ahead more efficient, and add tests for it.

Might be easiest to read the three commits separately.

…h testing

This will allow testing advancement by more than 1 at a time.
This means `skip` (which uses `nth`) will also be more efficient.
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

@ehuss ehuss added this pull request to the merge queue Jan 2, 2024
Merged via the queue into rust-lang:master with commit 710701c Jan 2, 2024
7 checks passed
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