Skip to content

Commit

Permalink
Enable abbreviations cache for duplicates (#318)
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 authored Jul 28, 2024
1 parent 20277bf commit 983d63d
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 983d63d

Please sign in to comment.