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

Implement O(n) FromIterator<(usize, T)> and more iteration features #62

Merged
merged 5 commits into from
Mar 7, 2019

Conversation

tormol
Copy link
Contributor

@tormol tormol commented Mar 3, 2019

The FromIterator impl uses recreate_vacant_list() from #60, so the first commit from there is included here too.
I have not implemented Extend because repairing the vacant list if the iterator panics is more trouble than its worth.
cc #42

Edit:
I collected these commits into one PR because they would not apply independently, but please don't squash them as the commits add different features.
I'll rebase once recreate_vacant_list() is on master.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks!

@carllerche carllerche merged commit 112814b into tokio-rs:master Mar 7, 2019
@tormol
Copy link
Contributor Author

tormol commented Mar 8, 2019

Why squash? Now a single commit implements 3+ orthogonal features, ugh.
Especially shrink_to_fit() which has nothing to do with iterators, and had been improved in #60.

@carllerche
Copy link
Member

Habit mostly. Ideally separate features are in separate PRs. This keeps the link between commits & PR conversation.

I opted to squash as I felt it was related enough to not merit asking to split up the PRs.

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