]> git.lizzy.rs Git - rust.git/commit
BTreeSet::from_iter: use bulk building to improve the performance
authorCheng XU <git@xuc.me>
Sat, 28 Aug 2021 23:57:58 +0000 (16:57 -0700)
committerCheng XU <git@xuc.me>
Sun, 29 Aug 2021 00:19:07 +0000 (17:19 -0700)
commita03287bbf765ce7ac0e2ae9e64d8ade168ece301
tree03d6e4dd77936de49c41a8570aee2d28c03b1490
parentcf814d60f82723e5965763859c51b3e7bd885b9b
BTreeSet::from_iter: use bulk building to improve the performance

Apply the same optimization as BTreeMap::from_iter.
library/alloc/src/collections/btree/set.rs