increase bin count for hash scan (#17562)

This commit is contained in:
Jeff Washington (jwash) 2021-06-04 10:53:13 -05:00 committed by GitHub
parent 544b3c0d17
commit 5197454fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4517,7 +4517,7 @@ impl AccountsDb {
let mut scan_and_hash = move || { let mut scan_and_hash = move || {
// When calculating hashes, it is helpful to break the pubkeys found into bins based on the pubkey value. // 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. // 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. // # of passes should be a function of the total # of accounts that are active.
// higher passes = slower total time, lower dynamic memory usage // higher passes = slower total time, lower dynamic memory usage