Skip to content

Copy the storage template by seeking between its data extents instead of scanning its whole logical size - #770

Open
BinSquare wants to merge 2 commits into
mainfrom
binbin-sparse-copy-seek-data
Open

Copy the storage template by seeking between its data extents instead of scanning its whole logical size#770
BinSquare wants to merge 2 commits into
mainfrom
binbin-sparse-copy-seek-data

Conversation

@BinSquare

Copy link
Copy Markdown
Contributor

The 20 GiB storage template holds ~9 MiB of real data, but the copy read every chunk of its logical size to find that data, spending ~11s on the critical path of every packed run; using SEEK_DATA/SEEK_HOLE to jump between extents brings a warm ./app run from ~11.5s to ~0.6s, with a scan fallback for filesystems lacking the extension.

… of scanning its whole logical size, cutting packed run startup from ~11s to ~0.6s
…replaced across sparse layouts, large offsets and end-of-file data
@BinSquare
BinSquare force-pushed the binbin-sparse-copy-seek-data branch from 2eeab7a to 5517347 Compare July 28, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant