Skip to content

Commit

Permalink
Runs accounts delta hash calculation in thread pool (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 30, 2024
1 parent ff1b220 commit ffd261e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7516,8 +7516,9 @@ impl AccountsDb {
hashes.retain(|k| k.0 != ignore);
}

let accounts_delta_hash =
AccountsDeltaHash(AccountsHasher::accumulate_account_hashes(hashes));
let accounts_delta_hash = self
.thread_pool
.install(|| AccountsDeltaHash(AccountsHasher::accumulate_account_hashes(hashes)));
accumulate.stop();
let mut uncleaned_time = Measure::start("uncleaned_index");
self.uncleaned_pubkeys.insert(slot, dirty_keys);
Expand Down

0 comments on commit ffd261e

Please sign in to comment.