Skip to content

Commit

Permalink
Enable abbreviations cache for duplicates
Browse files Browse the repository at this point in the history
This speeds up the initial parsing of units when there are many
small units that share abbreviations.

This was encountered for postgresql in opensuse/tumbleweed.
  • Loading branch information
philipc committed Jul 28, 2024
1 parent 20277bf commit 942e72d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl<'a> LoaderInternal<'a> {
if let Some(sup_object) = &sup_object {
dwarf.load_sup(|id| load_section(Some(id.name()), sup_object, endian, arena_data))?;
}
dwarf.populate_abbreviations_cache(gimli::AbbreviationsCacheStrategy::Duplicates);

let ctx = Context::from_dwarf(dwarf)?;

Expand Down

0 comments on commit 942e72d

Please sign in to comment.