-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
A-dbRelated to the databaseRelated to the databaseC-perfA change motivated by improving speed, memory usage or disk footprintA change motivated by improving speed, memory usage or disk footprint
Description
Summary
In StateProviderBuilder::build(), we currently create a new state provider by calling state_by_block_hash. MDBX supports cloning transactions via its API, which could potentially be leveraged here instead.
Context
pub fn build(&self) -> ProviderResult<StateProviderBox> {
let mut provider = self.provider_factory.state_by_block_hash(self.historical)?;
// ...
}Task
- Investigate whether using the MDBX transaction clone API would be beneficial here
- Determine if cloning a transaction is cheaper than creating a new one via
state_by_block_hash - If beneficial, implement the change using the appropriate MDBX API
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-dbRelated to the databaseRelated to the databaseC-perfA change motivated by improving speed, memory usage or disk footprintA change motivated by improving speed, memory usage or disk footprint
Type
Projects
Status
Backlog