diff options
| author | Cheng XU <git@xuc.me> | 2021-08-28 16:48:45 -0700 |
|---|---|---|
| committer | Cheng XU <git@xuc.me> | 2021-08-28 17:18:50 -0700 |
| commit | cf814d60f82723e5965763859c51b3e7bd885b9b (patch) | |
| tree | 3076d1accc7df88f4ad350dc57d8fea3ccdd1f43 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 6a6885c6bd1d44969ced14ab7f3ea9d543bf14a2 (diff) | |
| download | rust-cf814d60f82723e5965763859c51b3e7bd885b9b.tar.gz rust-cf814d60f82723e5965763859c51b3e7bd885b9b.zip | |
BTreeMap::from_iter: use bulk building to improve the performance
Bulk building is a common technique to increase the performance of building a fresh btree map. Instead of inserting items one-by-one, we sort all the items beforehand then create the BtreeMap in bulk.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
