Skip to content

Commit

Permalink
remove move and bank clone
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jan 11, 2024
1 parent 5f41ff5 commit d2dfb14
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions ledger/benches/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,17 @@ fn bench_execute_batch(
let mut batches_iter = batches.into_iter();

let mut timing = ExecuteTimings::default();
bencher.iter({
let bank = bank.clone();
move || {
let batch = batches_iter.next().unwrap();
execute_batch(
&batch,
&bank,
None,
None,
&mut timing,
None,
&prioritization_fee_cache,
)
}
bencher.iter(|| {
let batch = batches_iter.next().unwrap();
execute_batch(
&batch,
&bank,
None,
None,
&mut timing,
None,
&prioritization_fee_cache,
)
});
}

Expand Down

0 comments on commit d2dfb14

Please sign in to comment.