Repository navigation
Conversation
Voyager's StringIndex.load parses names.json with a regex-based java.util.Scanner, which dominates load time for large name lists. VoyagerReader now holds a raw Index plus a names array, parses names with a streaming byte-level parser, and loads the index and names concurrently. On a 2M-name / 405 MiB index: names parsing ~10x faster, total reader load ~3-4x faster. The parser streams in chunks, so names files larger than 2GB are supported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remote voyager indexes are no longer downloaded to local disk before loading. ParallelRangeInputStream fetches fixed-size byte ranges in parallel and serves them in order to Index.load(InputStream) and the names parser, removing the disk write and read-back. Each range retries independently with exponential backoff and jitter, resuming from the last byte received; a range only fails after many consecutive attempts without progress, so transient failures such as GCS rate limiting never reach the native loader. The stream verifies the source was not modified during the read. Completed ranges can optionally be spilled to local disk for reuse by a later attempt (off by default, since spilling caps throughput at disk speed). names.json is now parsed with Jackson's streaming parser instead of a custom parser, rejecting anything other than a flat list of strings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6016 +/- ##
==========================================
+ Coverage 62.03% 62.60% +0.56%
==========================================
Files 323 327 +4
Lines 11751 12018 +267
Branches 820 891 +71
==========================================
+ Hits 7290 7524 +234
- Misses 4461 4494 +33 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dylanrb123
approved these changes
Oct 16, 2026
This branch has not been deployed
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.
Currently, the voyager side input downloads its files disk, but the worker disk is not reused upon crashes, so persisting the voyager files to disk by default introduces excess latency.
This PR introduces a buffering-retrying parallel-download input stream for use with voyager,
ParallelRangeInputStream. Ranges which fail are retried from the last-read byte.Backed by
ParallelRangeInputStream, voyager data is now read directly into memory, sidestepping the round-trip to disk. For names.json, uses jackson streaming instead of TinyJson.