Skip to content

Commit ae7342a

Browse files
committed
std: Refine and document HashMap's code
* branchless `bucket.next()` * robin_hood is a free function * fixed the resize policy that was off by one * documented the growth algorithm * updated documentation after interface changes * removed old fixmes
1 parent fc636ae commit ae7342a

File tree

5 files changed

+704
-482
lines changed

5 files changed

+704
-482
lines changed

src/libstd/collections/hashmap/bench.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn new_insert_drop(b : &mut Bencher) {
3838
}
3939

4040
#[bench]
41-
fn insert(b: &mut Bencher) {
41+
fn grow_by_insertion(b: &mut Bencher) {
4242
use super::HashMap;
4343

4444
let mut m = HashMap::new();

0 commit comments

Comments
 (0)