Skip to content

core/state: expose the state reader stats #31998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjl493456442
Copy link
Member

This pull request introduces a mechanism to expose statistics from the state reader,
specifically related to cache utilization during state prefetching.

To improve state access performance, a pair of state readers is constructed with a
shared local cache. One reader to execute transactions ahead of time to warm up the
cache. The other reader is used by the actual chain processing logic, which can benefit
from the prefetched states.

This PR adds visibility into how effective the cache is by exposing relevant usage statistics.

@rjl493456442
Copy link
Member Author

截屏2025-06-10 14 40 24

@rjl493456442 rjl493456442 added this to the 1.15.12 milestone Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant