reduce copy (#17672)

This commit is contained in:
Jeff Washington (jwash) 2021-06-02 14:03:02 -05:00 committed by GitHub
parent 3a12f92c34
commit d802eb303c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4446,7 +4446,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;
@ -4466,7 +4466,7 @@ impl AccountsDb {
loaded_account.loaded_hash(),
balance,
slot,
pubkey,
*pubkey,
);
if check_hash {