Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
reduce copy (#17672)
Browse files Browse the repository at this point in the history
(cherry picked from commit d802eb3)
  • Loading branch information
jeffwashington committed Jun 3, 2021
1 parent a00fbbf commit d45d00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4312,7 +4312,7 @@ impl AccountsDb {
|loaded_account: LoadedAccount,
accum: &mut Vec<Vec<CalculateHashIntermediate>>,
slot: Slot| {
let pubkey = *loaded_account.pubkey();
let pubkey = loaded_account.pubkey();
let pubkey_to_bin_index = pubkey.as_ref()[0] as usize * bins / max_plus_1;
if !bin_range.contains(&pubkey_to_bin_index) {
return;
Expand All @@ -4332,7 +4332,7 @@ impl AccountsDb {
loaded_account.loaded_hash(),
balance,
slot,
pubkey,
*pubkey,
);

if check_hash {
Expand Down

0 comments on commit d45d00e

Please sign in to comment.