plumbing for 'other_slot' in 'update_index' (#23330)

This commit is contained in:
Jeff Washington (jwash)
2022-02-25 12:58:08 -06:00
committed by GitHub
parent e2fa6a0f7a
commit 0ad4757159
4 changed files with 62 additions and 4 deletions

View File

@ -26,6 +26,7 @@ fn bench_accounts_index(bencher: &mut Bencher) {
for f in 0..NUM_FORKS {
for pubkey in pubkeys.iter().take(NUM_PUBKEYS) {
index.upsert(
f,
f,
pubkey,
&AccountSharedData::default(),
@ -43,6 +44,7 @@ fn bench_accounts_index(bencher: &mut Bencher) {
for _p in 0..NUM_PUBKEYS {
let pubkey = thread_rng().gen_range(0, NUM_PUBKEYS);
index.upsert(
fork,
fork,
&pubkeys[pubkey],
&AccountSharedData::default(),