Repository navigation
Conversation
…ght-dev#1788)" This reverts commit 3ef1a36. On Windows, a snapshot blob marked with FSCTL_SET_SPARSE is slow to map under WHP. The first guest function call after restoring from it takes about 35 ms longer than from a dense blob. Having the flag set is enough: a blob with no holes and a single extent is just as slow, and clearing the flag afterwards does not help. Only a fresh dense write does. Signed-off-by: danbugs <danilochiarlone@gmail.com>
danbugs
requested review from
dblnz,
devigned,
jprendes,
jsturtevant,
ludfjig and
syntactically
as code owners
October 7, 2026 17:47
danbugs
requested review from
andreiltd,
simongdavies and
squillace
as code owners
October 7, 2026 17:47
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
It regresses Unix snapshot performance and leaves existing Windows sparse blobs unchanged.
1 open finding
What changed in this PR
Reverts sparse snapshot blob writes to avoid WHP restore latency.
Changes:
- Restores dense atomic blob writes.
- Removes sparse-write code, tests, and Windows API features.
- Removes the sparse-write changelog entry.
| File | Description |
|---|---|
fsutil.rs |
Restores dense snapshot writes. |
Cargo.toml |
Removes sparse-file API features. |
CHANGELOG.md |
Removes sparse-write documentation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
jprendes
approved these changes
Oct 7, 2026
danbugs
enabled auto-merge (squash)
October 7, 2026 18:34
Contributor
Author
|
Superseded by #1898 (reopened from a branch in the main repo so CI gets the longer job timeouts). |
auto-merge was automatically disabled
October 7, 2026 18:54
Pull request was closed
danbugs
added a commit
that referenced
this pull request
Oct 8, 2026
This reverts #1788 because sparse snapshot blobs slow down the first guest function call after a restore on Windows (WHP). Any blob written with `FSCTL_SET_SPARSE` costs about 35 ms extra on that first guest function call, even when the blob has no holes. Clearing the flag later doesn't fix it; only a dense rewrite does. Replaces #1895, which was opened from a fork and hit the shorter CI timeouts. Signed-off-by: danbugs <danilochiarlone@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This reverts #1788 because sparse snapshot blobs slow down the first guest function call after a restore on Windows (WHP). Any blob written with
FSCTL_SET_SPARSEcosts about 35 ms extra on that first guest function call, even when the blob has no holes. Clearing the flag later doesn't fix it; only a dense rewrite does.