-
Notifications
You must be signed in to change notification settings - Fork 5
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
enha: implement storage cache #1887
Conversation
PR Reviewer Guide 🔍(Review updated until commit 20189b2)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 20189b2
Previous suggestionsSuggestions up to commit fe7b2f9
|
fe7b2f9
to
ae91f49
Compare
Benchmark: |
Benchmark: Git Info:
RPS Stats: Max: 1204.00, Min: 731.00, Avg: 1017.23, StdDev: 53.77 Plot: View Plot |
ae91f49
to
f8cd0c6
Compare
Benchmark: Git Info:
RPS Stats: Max: 1186.00, Min: 691.00, Avg: 986.88, StdDev: 53.79 Plot: View Plot |
89c140f
to
3fb250d
Compare
Persistent review updated to latest commit 20189b2 |
/benchmark |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1306.00, Min: 766.00, Avg: 1144.55, StdDev: 70.56 Plot: View Plot |
/benchmark --target-account-strategy=partial0.5 |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1407.00, Min: 1012.00, Avg: 1249.07, StdDev: 58.61 Plot: View Plot |
/benchmark --target-account-strategy=partial0.5 |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1369.00, Min: 941.00, Avg: 1252.77, StdDev: 54.82 Plot: View Plot |
def4b07
to
2b950ea
Compare
/benchmark --target-account-strategy=partial0.5 |
which replaces the previous temporary storage linear search with an optimized LRU cache search, this improves TPS and importer-offline speed by around 10%
2b950ea
to
697b357
Compare
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1343.00, Min: 728.00, Avg: 1224.79, StdDev: 58.63 Plot: View Plot |
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1323.00, Min: 750.00, Avg: 1119.25, StdDev: 71.85 Plot: View Plot |
/benchmark --target-account-strategy=partial0.5 |
PR Type
Enhancement
Description
Changes walkthrough 📝
importer_offline.rs
Refactor block execution and storage saving logic
src/bin/importer_offline.rs
and batch management
address.rs
Add ordering traits to Address struct
src/eth/primitives/address.rs
cache.rs
Implement StorageCache for caching slots and accounts
src/eth/storage/cache.rs
accounts
mod.rs
Add StorageCache and modify Storage trait
src/eth/storage/mod.rs
stratus_storage.rs
Integrate StorageCache into StratusStorage
src/eth/storage/stratus_storage.rs
inmemory.rs
Replace InMemoryTemporaryAccount with AccountWithSlots
src/eth/storage/temporary/inmemory.rs
leader-follower-miner.test.ts
Update error message assertion in miner mode change test
e2e/cloudwalk-contracts/integration/test/leader-follower-miner.test.ts
Cargo.toml
Add new dependencies for caching implementation
Cargo.toml