From 296a8ade63845e729cf4bc764d77f3104135f4e6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 16 Jun 2021 20:31:26 +0000 Subject: [PATCH] set hash bins to 65k (#17912) (#18009) (cherry picked from commit 55ee3b5f2fd02022c23b745de2af3f71a64750b5) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- 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 3e292c68b4..d4b25df2cf 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4639,7 +4639,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 = 256; + const PUBKEY_BINS_FOR_CALCULATING_HASHES: usize = 65536; // # of passes should be a function of the total # of accounts that are active. // higher passes = slower total time, lower dynamic memory usage