Stream GXT discovery in large RPF archives #61
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/rpatty-dev--PercyStar!61
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/61/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kaoru-maki on GitHub · 2026-11-24 21:56 UTC · original
kaoru-maki:feat/streaming-gxt→main· +491 −1 · 3 files · 2 commits · merged 2026-11-25 09:46 UTCDepends on #60. The top commit in this PR adds streaming discovery and reuses the typed decoder introduced there. The GitHub diff includes that prerequisite until it reaches
main.Summary
Add bounded, sequential discovery of typed GXT tables for large RPF9 files. The Explorer opens the resulting entries through its existing reader. A separate
PercyStar --scan-gxt <archive.rpf>command prints a TSV inventory with archive offsets, chunk counts and row counts. The scanner preserves zlib continuation chunks and leaves decoding to the existing GXT reader.Validation
cargo test --offline --locked --releaseon macOS arm64: 137 passed, 5 ignored. Synthetic tests cover split streams crossing a read boundary, continuation tails, invalid zlib checksums and the normal entry reader on a sparse RPF larger than 512 MiB.levels.rpfcompleted with zero typed GXT tables, as did the other 18 archives outside the three localization archives.AI-assisted. The tests construct their inputs in Rust. The benchmark above reports aggregate counts only.
@rpatty-dev on GitHub · 2026-11-25 09:46 UTC · original
Nice follow-up to #60, streaming the discovery makes the big archives much nicer to work with. Merged, thanks!