Skip to content

Commit

Permalink
Uses IntSet for uncleaned roots during index generation (solana-labs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 9, 2023
1 parent 28e08ac commit a96be5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9408,7 +9408,7 @@ impl AccountsDb {
// subtract data.len() from accounts_data_len for all old accounts that are in the index twice
let mut accounts_data_len_dedup_timer =
Measure::start("handle accounts data len duplicates");
let uncleaned_roots = Mutex::new(HashSet::<Slot>::default());
let uncleaned_roots = Mutex::new(IntSet::default());
if pass == 0 {
let accounts_data_len_from_duplicates = unique_pubkeys_by_bin
.par_iter()
Expand Down

0 comments on commit a96be5d

Please sign in to comment.