File tree Expand file tree Collapse file tree
crates/hash-sorted-map/benchmarks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -430,8 +430,6 @@ fn bench_sort(c: &mut Criterion) {
430430}
431431
432432fn 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
You can’t perform that action at this time.
0 commit comments