]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #88282 - Neutron3529:patch-4, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 14 Nov 2021 18:47:42 +0000 (18:47 +0000)
committerbors <bors@rust-lang.org>
Sun, 14 Nov 2021 18:47:42 +0000 (18:47 +0000)
commitad442399756573dccacb314b6bf8079964bcc72a
tree6ef7324d0a4bb040207c7d32dcdb69280ce579b9
parentc8e94975a6541e947a1bd4971e084c8ba637f2b6
parent2feee3659e19fddf2eb47ea37293cae73bd52c98
Auto merge of #88282 - Neutron3529:patch-4, r=Mark-Simulacrum

Optimize BinaryHeap::extend from Vec

This improves the performance of extending `BinaryHeap`s from vectors directly. Future work may involve extending this optimization to other, similar, cases where the length of the added elements is well-known, but this is not yet done in this PR.