Save 7G mem on mainnet fixing AccIndex overalloc. (#14435)

This commit is contained in:
Ryo Onodera 2021-01-06 09:48:59 +09:00 committed by GitHub
parent e5b10d8b7e
commit c9df6134fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(|| {