Skip to content

Commit 35a130a

Browse files
v2.1: Runs accounts delta hash calculation in thread pool (backport of #3389) (#3391)
Runs accounts delta hash calculation in thread pool (#3389) (cherry picked from commit ffd261e) Co-authored-by: Brooks <[email protected]>
1 parent 07f3ecd commit 35a130a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

accounts-db/src/accounts_db.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7403,8 +7403,9 @@ impl AccountsDb {
74037403
hashes.retain(|k| k.0 != ignore);
74047404
}
74057405

7406-
let accounts_delta_hash =
7407-
AccountsDeltaHash(AccountsHasher::accumulate_account_hashes(hashes));
7406+
let accounts_delta_hash = self
7407+
.thread_pool
7408+
.install(|| AccountsDeltaHash(AccountsHasher::accumulate_account_hashes(hashes)));
74087409
accumulate.stop();
74097410
let mut uncleaned_time = Measure::start("uncleaned_index");
74107411
self.uncleaned_pubkeys.insert(slot, dirty_keys);

0 commit comments

Comments
 (0)