read only account cache for executable accounts - improve replay (#16150)

* read only account cache

* tests

* clippy

* cleanup

* new file, add tests

* remove copy/paste code from test

* remove dead code

* all loads use cache

* remove stale comments

* add metrics logging for read only cache size

* report read only cache hits and misses

* consistency

* formatting

* rename, add comment

* u64

* better interaction with existing cache

* lru list saved between cleans
This commit is contained in:
Jeff Washington (jwash)
2021-04-01 07:16:34 -05:00
committed by GitHub
parent badf224460
commit 3996b699dc
3 changed files with 360 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ pub mod loader_utils;
pub mod log_collector;
pub mod message_processor;
mod native_loader;
mod read_only_accounts_cache;
pub mod rent_collector;
pub mod secondary_index;
pub mod serde_snapshot;