forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add metric for total size of cached partial state witnesses (ne…
…ar#11320) `CacheEntry` tracks its own size in `total_parts_size`, that is pretty straightforward since we can only increment it as we add more parts. The total size across all cached entries in `PartialEncodedStateWitnessTracker` is calculated by simply iterating across all entries. We can afford that performance-wise since LRU cache size is currently limited to 200 entries and we plan to reduce that before the mainnet release.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters