about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-09-20 06:29:42 +0000
committerbors <bors@rust-lang.org>2017-09-20 06:29:42 +0000
commit94a82adbb491b5fd0585370d4fcc7b36798e70d5 (patch)
treede14b4b931e0cea4245b79eb557ab7cce878c959 /src/rustllvm/RustWrapper.cpp
parent54996837a399421f8d691c6901eea5ab20a30f46 (diff)
parent10384ab18a386e6f7b58c714def62e405182d968 (diff)
downloadrust-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