From 5197454fea67804769a227cdb626b627fb75438b Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 4 Jun 2021 10:53:13 -0500 Subject: [PATCH] increase bin count for hash scan (#17562) --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index b037485634..11093705e6 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4517,7 +4517,7 @@ impl AccountsDb { let mut scan_and_hash = move || { // When calculating hashes, it is helpful to break the pubkeys found into bins based on the pubkey value. // More bins means smaller vectors to sort, copy, etc. - const PUBKEY_BINS_FOR_CALCULATING_HASHES: usize = 64; + const PUBKEY_BINS_FOR_CALCULATING_HASHES: usize = 256; // # of passes should be a function of the total # of accounts that are active. // higher passes = slower total time, lower dynamic memory usage