Skip to content

Fix outdated comment in Vec::from_iter #29688

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

Merged
merged 1 commit into from
Nov 10, 2015
Merged

Conversation

stepancheg
Copy link
Contributor

Since commit 46068c9, call to reserve() on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.

Since commit 46068c9, call to `reserve()` on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Nov 9, 2015

📌 Commit e3433e3 has been approved by nikomatsakis

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Nov 10, 2015
…akis

Since commit 46068c9, call to `reserve()` on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Nov 10, 2015
…akis

Since commit 46068c9, call to `reserve()` on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.
bors added a commit that referenced this pull request Nov 10, 2015
@bors bors merged commit e3433e3 into rust-lang:master Nov 10, 2015
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.

4 participants