Skip to content

use stream decoder for beacon states#629

Draft
pk910 wants to merge 2 commits intomasterfrom
pk910/stream-beacon-states
Draft

use stream decoder for beacon states#629
pk910 wants to merge 2 commits intomasterfrom
pk910/stream-beacon-states

Conversation

@pk910
Copy link
Copy Markdown
Member

@pk910 pk910 commented Apr 7, 2026

this PR reduces memory consumption for loading beacon states by half, as the old implementation used a buffered approach where the full beacon state ssz gets loaded into memory first before decoding it into the structured BeaconState object.
This is mainly affecting instances with large state (holesky with >300MB state is regularly getting OOM killed)

depends on pk910/dynamic-ssz#166

nice to have, but adds some complexity that I'm not sure if worth adding for a explorer that's mainly testnet focused.

@pk910 pk910 added the build-docker-image Automatically build docker image for PR branch label Apr 7, 2026
@pk910 pk910 marked this pull request as draft April 8, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-docker-image Automatically build docker image for PR branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant