update_index uses ReadableAccount to reduce params (#23305)

This commit is contained in:
Jeff Washington (jwash)
2022-02-23 17:01:23 -06:00
committed by GitHub
parent 0dd36f3201
commit cafc18c3f9
3 changed files with 63 additions and 84 deletions

View File

@@ -10,7 +10,7 @@ use {
AccountSecondaryIndexes, AccountsIndex, ACCOUNTS_INDEX_CONFIG_FOR_BENCHMARKS,
},
},
solana_sdk::pubkey::{self, Pubkey},
solana_sdk::{account::AccountSharedData, pubkey},
test::Bencher,
};
@@ -28,8 +28,7 @@ fn bench_accounts_index(bencher: &mut Bencher) {
index.upsert(
f,
pubkey,
&Pubkey::default(),
&[],
&AccountSharedData::default(),
&AccountSecondaryIndexes::default(),
AccountInfo::default(),
&mut reclaims,
@@ -46,8 +45,7 @@ fn bench_accounts_index(bencher: &mut Bencher) {
index.upsert(
fork,
&pubkeys[pubkey],
&Pubkey::default(),
&[],
&AccountSharedData::default(),
&AccountSecondaryIndexes::default(),
AccountInfo::default(),
&mut reclaims,