-
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: use faster library for storage cache #1895
enha: use faster library for storage cache #1895
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
/benchmark --target-account-strategy=partial0.33 |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1342.00, Min: 643.00, Avg: 1170.64, StdDev: 67.76 Plot: View Plot |
/benchmark --target-account-strategy=partial0.5 |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1378.00, Min: 973.00, Avg: 1247.69, StdDev: 57.76 Plot: View Plot |
/benchmark --target-account-strategy=partial0.5 |
Benchmark: Git Info:
Configuration:
RPS Stats: Max: 1358.00, Min: 619.00, Avg: 1222.47, StdDev: 66.12 Plot: View Plot |
7021e5d
to
5859440
Compare
5859440
to
cd08acb
Compare
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1288.00, Min: 554.00, Avg: 1120.67, StdDev: 76.11 Plot: View Plot |
PR Type
Enhancement
Description
LruCache
withquick_cache::sync::Cache
for improved performance in storage cachingMutex
locks, simplifying the code and potentially reducing contentionSmallVec
usage, streamlining batch operationslru
, addedquick_cache
Changes walkthrough 📝
cache.rs
Optimize storage cache implementation
src/eth/storage/cache.rs
LruCache
withquick_cache::sync::Cache
Mutex
locks andparking_lot
dependencySmallVec
for batch operationsCargo.toml
Update dependencies for new cache library
Cargo.toml
lru
dependencyquick_cache
dependency version 0.6.9