@@ -3,11 +3,11 @@ use crate::annostorage::ValueSearch;
33use crate :: errors:: Result ;
44use crate :: graph:: NODE_NAME_KEY ;
55use crate :: types:: { AnnoKey , Annotation , Edge , NodeID } ;
6- use crate :: util;
6+ use crate :: util:: { self } ;
77use crate :: { annostorage:: symboltable:: SymbolTable , errors:: GraphAnnisCoreError } ;
88use core:: ops:: Bound :: * ;
99use itertools:: Itertools ;
10- use rustc_hash:: { FxHashMap , FxHashSet } ;
10+ use rustc_hash:: FxHashSet ;
1111use smartstring:: alias:: String ;
1212use smartstring:: { LazyCompact , SmartString } ;
1313use std:: borrow:: Cow ;
@@ -22,13 +22,13 @@ struct SparseAnnotation {
2222 val : usize ,
2323}
2424
25- type ValueItemMap < T > = FxHashMap < usize , Vec < T > > ;
25+ type ValueItemMap < T > = HashMap < usize , Vec < T > > ;
2626
2727#[ derive( Serialize , Deserialize , Clone , Default ) ]
2828pub struct AnnoStorageImpl < T : Ord + Hash + Default > {
29- by_container : FxHashMap < T , Vec < SparseAnnotation > > ,
29+ by_container : HashMap < T , Vec < SparseAnnotation > > ,
3030 /// A map from an annotation key symbol to a map of all its values to the items having this value for the annotation key
31- by_anno : FxHashMap < usize , ValueItemMap < T > > ,
31+ by_anno : HashMap < usize , ValueItemMap < T > > ,
3232 /// Maps a distinct annotation key to the number of elements having this annotation key.
3333 anno_key_sizes : BTreeMap < AnnoKey , usize > ,
3434 anno_keys : SymbolTable < AnnoKey > ,
@@ -45,8 +45,8 @@ impl<T: Ord + Hash + Clone + serde::Serialize + serde::de::DeserializeOwned + De
4545{
4646 pub fn new ( ) -> AnnoStorageImpl < T > {
4747 AnnoStorageImpl {
48- by_container : FxHashMap :: default ( ) ,
49- by_anno : FxHashMap :: default ( ) ,
48+ by_container : HashMap :: default ( ) ,
49+ by_anno : HashMap :: default ( ) ,
5050 anno_keys : SymbolTable :: new ( ) ,
5151 anno_values : SymbolTable :: new ( ) ,
5252 anno_key_sizes : BTreeMap :: new ( ) ,
0 commit comments