lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

[fulu] writeBlockInputToDb performance issue

Open twoeths opened this issue 1 month ago • 1 comments

Describe the bug

writeBlockInputToDb could be up to 750ms and block the main thread

Image

it's likely because we persist DataColumnSidecars objects, we should be able to use the Uint8Array instead because we get data either from gossip or getBlobsV2 https://github.com/ChainSafe/lodestar/blob/194afd5582965f9742cccc7c0254e433498b25b2/packages/beacon-node/src/chain/blocks/writeBlockInputToDb.ts#L63

Expected behavior

no performance issue this is part of #8619

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.36.0

twoeths avatar Nov 21 '25 17:11 twoeths

  • seems to be resolved by https://github.com/ChainSafe/lodestar/pull/8627

nflaig avatar Nov 27 '25 13:11 nflaig