From ffd261e55c718c0f4b6286eb103349b4177e8cd1 Mon Sep 17 00:00:00 2001 From: Brooks Date: Wed, 30 Oct 2024 11:32:52 -0400 Subject: [PATCH] Runs accounts delta hash calculation in thread pool (#3389) --- accounts-db/src/accounts_db.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index d7444e0d295774..dc5946eac31016 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -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);