Skip to content

Historic Mode: Fetch Logs From Different Block Ranges in Parallel #197

@0xNeshi

Description

@0xNeshi

A massive optimization to fetching logs from past blocks (both in historic and in sync::from_block modes) would be to parallelize the processing.
Processing finalized blocks could be parallelized with no issues, as no reorgs could ever happen there.
For finalized blocks, we could either:

  • avoid parallelization
  • fetch in parallel, but if a reorg happens, we can determine which block batches to re-fetch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: refactorCode improvement without changing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions