Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

set hash bins to 65k #17912

Merged
merged 1 commit into from
Jun 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4689,7 +4689,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
Expand Down