diff options
| author | bors <bors@rust-lang.org> | 2017-09-20 06:29:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-20 06:29:42 +0000 |
| commit | 94a82adbb491b5fd0585370d4fcc7b36798e70d5 (patch) | |
| tree | de14b4b931e0cea4245b79eb557ab7cce878c959 /src/rustllvm/RustWrapper.cpp | |
| parent | 54996837a399421f8d691c6901eea5ab20a30f46 (diff) | |
| parent | 10384ab18a386e6f7b58c714def62e405182d968 (diff) | |
| download | rust-94a82adbb491b5fd0585370d4fcc7b36798e70d5.tar.gz rust-94a82adbb491b5fd0585370d4fcc7b36798e70d5.zip | |
Auto merge of #44355 - Xaeroxe:optimize_drain_filter, r=alexcrichton
Optimize drain_filter This PR cuts out two copies from each iteration of `drain_filter` by exchanging the swap operation for a copy_nonoverlapping function call instead. Since the data being swapped is not needed anymore we can just overwrite it instead.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
