Uses IntSet for uncleaned roots during index generation (#34008)

This commit is contained in:
Brooks 2023-11-09 15:04:19 -05:00 committed by GitHub
parent 28e08ac141
commit a96be5d2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()