Skip to content

Commit b02de16

Browse files
committed
unsorted
1 parent e73f642 commit b02de16

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/hash-sorted-map/benchmarks/performance.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,6 @@ fn bench_sort(c: &mut Criterion) {
430430
}
431431

432432
fn bench_merge_sort(c: &mut Criterion) {
433-
use hash_sorted_map::HashSortedContainer;
434-
435433
const NUM_MAPS: usize = 100;
436434
const KEYS_PER_MAP: usize = 100_000;
437435

@@ -446,15 +444,15 @@ fn bench_merge_sort(c: &mut Criterion) {
446444
.collect();
447445

448446
// Pre-build sorted containers from the input data.
449-
let sorted_containers: Vec<HashSortedContainer<u32, u32>> = maps_data
447+
let sorted_containers: Vec<_> = maps_data
450448
.iter()
451449
.map(|keys| {
452450
let mut map: HashSortedMap<u32, u32, _> =
453451
HashSortedMap::with_hasher(IdentityBuildHasher::default());
454452
for &key in keys {
455453
*map.entry(key).or_default() += 1u32;
456454
}
457-
map.sort_by_hash()
455+
map
458456
})
459457
.collect();
460458

0 commit comments

Comments
 (0)