Skip to content

storage: read non-pruned blocks with fewer DB reads#645

Open
redsh4de wants to merge 1 commit into
Cuprate:mainfrom
redsh4de:perf/normal-block-contiguous
Open

storage: read non-pruned blocks with fewer DB reads#645
redsh4de wants to merge 1 commit into
Cuprate:mainfrom
redsh4de:perf/normal-block-contiguous

Conversation

@redsh4de

Copy link
Copy Markdown
Contributor

What

read non-pruned blocks tx blobs in one big read, like the pruned ones

Why

3-4 tape reads instead of 2 * (tx count) + 1

Where

storage

How

  • move the big bulk read out of the pruned branch so it applies for both pruned & non-pruned
  • non-pruned also reads each prunable tape (v1/v2) once, then stitches pruned + prunable per tx
  • add read_blob helper to keep things DRY

@github-actions github-actions Bot added the A-storage Area: Related to storage. label Jun 23, 2026
@redsh4de redsh4de marked this pull request as ready for review June 24, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-storage Area: Related to storage.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant