]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #48065 - Xaeroxe:patch-1, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Wed, 14 Feb 2018 08:14:32 +0000 (16:14 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2018 08:14:32 +0000 (16:14 +0800)
commit3715f1e490e187c3635ef241104bd5abe119958b
treee675da0a97f32d6a5f554b838b9b00bfb3be689f
parenta5c3209374261b2589e7be4d19953fd14f268ccc
parentfbad3b2468f46c14d0fd1283aa4935b3d79f007b
Rollup merge of #48065 - Xaeroxe:patch-1, r=alexcrichton

Apply optimization from #44355 to retain

As discussed in #44355 this PR applies a similar optimization to `Vec::retain`.  For `drain_filter`, a very similar function, this improved performance by up to 20%.