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
Activity
Villegas2003 commentedon Jul 1, 2024
Hi @mattsse , Are you still in need of support for this issue? I'd be happy to help.
[-]Improve historic state access[/-][+]feat(`anvil`): improve historic state access[/+]zerosnacks commentedon Jul 16, 2024
Hi @Villegas2003 that would be great, assigning this to you