Skip to content

Commit e81b261

Browse files
authored
Uses NoHashHasher in accounts write cache (#4321)
1 parent 6a2a959 commit e81b261

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accounts-db/src/accounts_cache.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use {
22
crate::{accounts_db::AccountsDb, accounts_hash::AccountHash},
33
dashmap::DashMap,
44
seqlock::SeqLock,
5+
solana_nohash_hasher::BuildNoHashHasher,
56
solana_sdk::{
67
account::{AccountSharedData, ReadableAccount},
78
clock::Slot,
@@ -152,7 +153,7 @@ impl CachedAccountInner {
152153

153154
#[derive(Debug, Default)]
154155
pub struct AccountsCache {
155-
cache: DashMap<Slot, SlotCache>,
156+
cache: DashMap<Slot, SlotCache, BuildNoHashHasher<Slot>>,
156157
// Queue of potentially unflushed roots. Random eviction + cache too large
157158
// could have triggered a flush of this slot already
158159
maybe_unflushed_roots: RwLock<BTreeSet<Slot>>,

0 commit comments

Comments
 (0)