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

Commit

Permalink
re-enable caching of hash calculation (backport #27920) (#27989)
Browse files Browse the repository at this point in the history
re-enable caching of hash calculation (#27920)

(cherry picked from commit 4893dd3)

Co-authored-by: Jeff Washington (jwash) <[email protected]>
  • Loading branch information
mergify[bot] and jeffwashington authored Sep 25, 2022
1 parent 8bde78e commit c32c076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/accounts_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ impl<'a> CalcAccountsHashConfig<'a> {
/// return true if we should cache accounts hash intermediate data between calls
pub fn get_should_cache_hash_data() -> bool {
// when we are skipping rewrites, we cannot rely on the cached data from old append vecs, so we have to disable caching for now
false
// skipping rewrites is not enabled in this branch. It requires a cli argument.
true
}
}

Expand Down

0 comments on commit c32c076

Please sign in to comment.