]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #81115 - ssomers:btree_drainy_refactor_4, r=Mark-Simulacrum
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 19 Jan 2021 09:27:54 +0000 (10:27 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 09:27:54 +0000 (10:27 +0100)
commit6af6c40a12e42e9a21c98df4d8d5ba052e2e4b69
tree0d822bb0a8de7dd4c3e9a93fdb018d2454faad94
parentde02bf399e477c3fbc447767a565d83df829a0c3
parent4775334f362b9e196738b0ccd2349ddd03de4007
Rollup merge of #81115 - ssomers:btree_drainy_refactor_4, r=Mark-Simulacrum

BTreeMap: prefer bulk_steal functions over specialized ones

The `steal_` functions (apart from their return value) are basically specializations of the more general `bulk_steal_` functions. This PR removes the specializations. The library/alloc benchmarks say this is never slower and up to 6% faster.

r? ``@Mark-Simulacrum``