@@ -1530,11 +1530,11 @@ pub(crate) mod convert {
15301530 use crate :: write:: {
15311531 self , ConvertError , ConvertLineProgram , ConvertResult , Dwarf , LocationList , RangeList ,
15321532 } ;
1533- use fnv:: FnvHashMap as HashMap ;
1533+ use fnv:: FnvHashMap ;
15341534
15351535 #[ derive( Debug , Default ) ]
15361536 struct FilterDependencies {
1537- edges : HashMap < UnitSectionOffset , Vec < UnitSectionOffset > > ,
1537+ edges : FnvHashMap < UnitSectionOffset , Vec < UnitSectionOffset > > ,
15381538 required : Vec < UnitSectionOffset > ,
15391539 }
15401540
@@ -2050,7 +2050,7 @@ pub(crate) mod convert {
20502050 ///
20512051 /// If this is set then `from_units` will contain exactly one unit.
20522052 from_skeleton_unit : Option < read:: UnitRef < ' a , R > > ,
2053- entry_ids : HashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
2053+ entry_ids : FnvHashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
20542054 dwarf : & ' a mut Dwarf ,
20552055 }
20562056
@@ -2065,7 +2065,7 @@ pub(crate) mod convert {
20652065 from_units : Vec :: new ( ) ,
20662066 from_unit_index : 0 ,
20672067 from_skeleton_unit : None ,
2068- entry_ids : HashMap :: default ( ) ,
2068+ entry_ids : FnvHashMap :: default ( ) ,
20692069 dwarf,
20702070 } ;
20712071
@@ -2096,7 +2096,7 @@ pub(crate) mod convert {
20962096 from_units : Vec :: new ( ) ,
20972097 from_unit_index : 0 ,
20982098 from_skeleton_unit : filter. skeleton_unit ,
2099- entry_ids : HashMap :: default ( ) ,
2099+ entry_ids : FnvHashMap :: default ( ) ,
21002100 dwarf,
21012101 } ;
21022102
@@ -2184,7 +2184,7 @@ pub(crate) mod convert {
21842184 from_dwarf : & ' a read:: Dwarf < R > ,
21852185 from_unit : read:: Unit < R > ,
21862186 from_skeleton_unit : read:: UnitRef < ' a , R > ,
2187- entry_ids : HashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
2187+ entry_ids : FnvHashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
21882188 unit_id : UnitId ,
21892189 unit : & ' a mut write:: Unit ,
21902190 line_strings : & ' a mut write:: LineStringTable ,
@@ -2243,7 +2243,7 @@ pub(crate) mod convert {
22432243 let unit_id = skeleton. unit_id ;
22442244 let unit = & mut * skeleton. unit ;
22452245
2246- let mut entry_ids = HashMap :: default ( ) ;
2246+ let mut entry_ids = FnvHashMap :: default ( ) ;
22472247 entry_ids. insert ( root_offset, ( unit_id, unit. root ( ) ) ) ;
22482248 for offset in offsets {
22492249 entry_ids. insert ( offset, ( unit_id, unit. reserve ( ) ) ) ;
@@ -2387,7 +2387,7 @@ pub(crate) mod convert {
23872387 /// The table containing converted strings.
23882388 pub strings : & ' a mut write:: StringTable ,
23892389 line_program_files : Vec < FileId > ,
2390- entry_ids : & ' a HashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
2390+ entry_ids : & ' a FnvHashMap < UnitSectionOffset , ( UnitId , UnitEntryId ) > ,
23912391 from_entries : read:: EntriesRaw < ' a , ' a , R > ,
23922392 parents : Vec < ( isize , UnitEntryId ) > ,
23932393 }
0 commit comments