Repository navigation
inspect: read only the end of each segment over HTTP - #748
Merged
Merged
Conversation
`vortex inspect <https url>` downloaded the whole file, one segment per request, to print metadata: 1,098 sequential requests, 110 MB and 226 s for a 105 MB file. It only needs each flat segment's array node, which sits at the segment's end. - VortexHandle.segmentTail reads the end of a segment. VortexHttpReader fetches the last 4 KiB, then the exact node when its trailing length says it is larger; the default (mmap) returns the whole segment, which is free there. - VortexHandle.prefetchTails starts those requests together on virtual threads, 32 in flight (a tail is a few KiB, so the round trip dominates). Reads stay on the opening thread: a mmap handle's confined arena cannot be read from workers. Zone-map tables are prefetched too. - An unexpected HTTP status reports the server's x-error-message and Retry-After, so Hugging Face's 429 says what to do. - inspect reports segment progress on stderr and prints an expected error once, without its stack. Closes #743 Co-Authored-By: Claude Sonnet 5 <[email protected]>
dfa1
force-pushed
the
inspect-http-743
branch
from
November 13, 2026 19:38
c0429d9 to
ba4125c
Compare
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.
Closes #743.
inspectfetched every segment of a remote file to read its array node; it now fetches each segment's last 4 KiB, concurrently, and shows progress.Not measured against the Hugging Face file from the ticket; covered by
WriterHttpTailTest(tails equal the segment ends, under 10% of segment bytes fetched).🤖 Generated with Claude Code