ouroboros-network icon indicating copy to clipboard operation
ouroboros-network copied to clipboard

Optimise block fetch decision logic in bulk sync mode

Open coot opened this issue 3 years ago • 0 comments

The block fetch decision logic shows up high in profile output.

@dcoutts:

The overall point is that we're making fetch decisions too frequently. Each decision is probably appropriately expensive, but we're making them too frequently, at least in bulk fetch mode.

I suspect we're requesting rather short ranges of blocks, and doing so too frequently. It'd be better to make fewer decisions, and fetch larger ranges of blocks.

coot avatar Jul 27 '22 12:07 coot