Skip to content

Commit

Permalink
v2.1: Runs accounts delta hash calculation in thread pool (backport of
Browse files Browse the repository at this point in the history
…#3389) (#3391)

Runs accounts delta hash calculation in thread pool (#3389)

(cherry picked from commit ffd261e)

Co-authored-by: Brooks <brooks@anza.xyz>
  • Loading branch information
mergify[bot] and brooksprumo authored Oct 31, 2024
1 parent 07f3ecd commit 35a130a
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 @@ -7403,8 +7403,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 35a130a

Please sign in to comment.