Registry Mirror
Skip to content

Conversation

@erickt

@erickt erickt commented Jun 29, 2014

Copy link
Copy Markdown
Contributor

The bug #11084 causes option::collect and result::collect about twice as slower as it should because llvm is having some trouble optimizing away the scan closure. This gets rid of it so now those functions perform equivalent to a hand written version.

This also adds an impl of Default for Rc along the way.

erickt added 3 commits June 29, 2014 12:29
The bug rust-lang#11084 causes these collect functions to run about
twice as slow as they should because llvm is having trouble
optimizing away the closure for some reason. This patch works
around that performance bug by using a simple adapter iterator
explicitly for capturing if the outer iterator returns an
error.
bors added a commit that referenced this pull request Jun 30, 2014
The bug #11084 causes `option::collect` and `result::collect` about twice as slower as it should because llvm is having some trouble optimizing away the scan closure. This gets rid of it so now those functions perform equivalent to a hand written version.

This also adds an impl of `Default` for `Rc` along the way.
@bors bors closed this Jun 30, 2014
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