Open
Description
Component
Anvil
Describe the feature you would like
for historic blocks we currently need to acquire a write lock
foundry/crates/anvil/src/eth/backend/mem/mod.rs
Line 1729 in 88c9b7f
in case we need to fetch the state from disk:
this is very inefficient because it bottlenecks concurrent requests < current.height.
this can be improved in various ways,
- easiest solution would be two step locking
- write lock and ensure state is initialized if missing:
foundry/crates/anvil/src/eth/backend/mem/storage.rs
Lines 164 to 166 in 88c9b7f
- read lock to fetch it
Additional context
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Todo