diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-06-23 19:27:54 -0400 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-06-29 12:32:24 -0700 |
| commit | ab1bd3adf673ef7a515242a2dcc09ce360d41d9c (patch) | |
| tree | f4bab1a0c84e691a800be3d8e9cbb7c7cb197714 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 1ea9991921d2969517e445230997b8771d84bdb4 (diff) | |
| download | rust-ab1bd3adf673ef7a515242a2dcc09ce360d41d9c.tar.gz rust-ab1bd3adf673ef7a515242a2dcc09ce360d41d9c.zip | |
core: optimize {option,result}::collect
The bug #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.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
