Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
reduce copy (#17672)
(cherry picked from commit d802eb3)
  • Loading branch information
jeffwashington committed Jun 3, 2021
commit d45d00e22abe1f6ec36fe19df65d7b26d320c588
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