Save 7G mem on mainnet fixing AccIndex overalloc. (#14435)
This commit is contained in:
parent
e5b10d8b7e
commit
c9df6134fa
|
@ -498,7 +498,7 @@ impl<T: 'static + Clone> AccountsIndex<T> {
|
|||
if w_account_entry.is_none() {
|
||||
let new_entry = Arc::new(AccountMapEntryInner {
|
||||
ref_count: AtomicU64::new(0),
|
||||
slot_list: RwLock::new(SlotList::with_capacity(32)),
|
||||
slot_list: RwLock::new(SlotList::with_capacity(1)),
|
||||
});
|
||||
let mut w_account_maps = self.account_maps.write().unwrap();
|
||||
let account_entry = w_account_maps.entry(*pubkey).or_insert_with(|| {
|
||||
|
|
Loading…
Reference in New Issue