Skip to content

perf: remove spawn_blocking for workers in multiproof #19183

@yongkangc

Description

@yongkangc

Eliminate the spawn_blocking hop in the multiproof pipeline.

Current:

MultiproofManager --(spawn_blocking)--> worker_rx.recv()
    └── result -> MultiProofTask channel

Proposed:

MultiproofManager -input-> worker
    worker -direct send-> MultiProofTask channel

Impact: Remove the spawn → recv → send roundtrip for both account and storage proof workers.

Additional context

https://docs.rs/crossbeam/latest/crossbeam/macro.select.html

Metadata

Metadata

Assignees

Labels

A-engineRelated to the engine implementationC-enhancementNew feature or requestC-perfA change motivated by improving speed, memory usage or disk footprint

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions