File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ num-traits = "0.2.12"
2222arrayvec = " 0.5.1"
2323alga = " 0.9.3"
2424rand = " 0.7.3"
25+ fxhash = " 0.2.1"
2526
2627[dev-dependencies ]
2728criterion = " 0.3.3"
Original file line number Diff line number Diff line change 11use alga:: general:: AbstractMonoid ;
22use alga:: general:: Operator ;
3- use std :: collections :: HashSet ;
3+ use fxhash :: FxHashSet as HashSet ;
44use std:: marker:: PhantomData ;
55
66pub ( crate ) trait FAT < Value , BinOp > : Clone
@@ -123,7 +123,7 @@ where
123123 self . parent ( leaf)
124124 } )
125125 . collect ( ) ;
126- let mut new_parents: HashSet < usize > = HashSet :: new ( ) ;
126+ let mut new_parents: HashSet < usize > = HashSet :: default ( ) ;
127127 loop {
128128 parents. drain ( ) . for_each ( |parent| {
129129 let left = self . left ( parent) ;
You can’t perform that action at this time.
0 commit comments