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

feat: state cache for execution #153

Merged
merged 9 commits into from
Oct 25, 2024

Conversation

forcodedancing
Copy link
Collaborator

@forcodedancing forcodedancing commented Sep 29, 2024

Description

Try to improve the speed of execution.
Use the flag optimize.enable-execution-cache to enable the cache for execution.

Rationale

Implement a layer of cache for db access.

Test results:

Compared the execution time of the original version and the cached version, for block range between (41932000, 41942000]. For each test the machine is rebooted (at the beginning it takes more time to execute) .

  1. Time decrease of every 100 blocks
image

Cached version has shorter total execution time. The decrease of execution for every 100 blocks is about 15% ~ 20%.

Also tracked the cache hit rate for long-run (different block ranges).

  1. Cache hit rate
image

Account hit rate is about 45%, and storage hit rate is about 30%.

Example

NA

Changes

Notable changes:

  • add cache layer for execution

Potential Impacts

  • NA

@forcodedancing forcodedancing changed the title Execution_cache_1.0.7 feat: state cache for execution Sep 29, 2024
@forcodedancing forcodedancing force-pushed the execution_cache_1.0.7 branch 3 times, most recently from 7030558 to 54e8451 Compare October 6, 2024 07:58
@forcodedancing forcodedancing force-pushed the execution_cache_1.0.7 branch 3 times, most recently from cf70bc4 to ad78a8a Compare October 8, 2024 03:42
@forcodedancing forcodedancing changed the base branch from new-engine to develop October 9, 2024 02:16
@unclezoro unclezoro merged commit df87156 into bnb-chain:develop Oct 25, 2024
46 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants