Stream GXT discovery in large RPF archives #61

Manually merged
github merged 2 commits from gh-pr/61/head into gh-pr/61/base 2026-11-27 02:33:29 +00:00
Owner

@⁠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 UTC

Depends 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 --release on 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.
  • Local Xbox 1.0.2.1 diagnostic scan: completed all 22 RPFs (161.31 GB), finding 30,511 tables and 7,530,381 rows. All checked table offsets, row counts and chunk counts agreed with the independent inventory. levels.rpf completed with zero typed GXT tables, as did the other 18 archives outside the three localization archives.
  • Peak RSS for the diagnostic scan across all 22 archives was 32.84 MiB.

AI-assisted. The tests construct their inputs in Rust. The benchmark above reports aggregate counts only.

**@⁠kaoru-maki** on GitHub · 2026-11-24 21:56 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/61) `kaoru-maki:feat/streaming-gxt` → `main` · +491 −1 · 3 files · 2 commits · merged 2026-11-25 09:46 UTC Depends 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 --release` on 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. - Local Xbox 1.0.2.1 diagnostic scan: completed all 22 RPFs (161.31 GB), finding 30,511 tables and 7,530,381 rows. All checked table offsets, row counts and chunk counts agreed with the independent inventory. `levels.rpf` completed with zero typed GXT tables, as did the other 18 archives outside the three localization archives. - Peak RSS for the diagnostic scan across all 22 archives was 32.84 MiB. AI-assisted. The tests construct their inputs in Rust. The benchmark above reports aggregate counts only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:33:29 +00:00
github manually merged commit c31f6ec72d into gh-pr/61/base 2026-11-27 02:33:29 +00:00
Author
Owner

@⁠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!

**@⁠rpatty-dev** on GitHub · 2026-11-25 09:46 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/61#issuecomment-7158772823) Nice follow-up to #60, streaming the discovery makes the big archives much nicer to work with. Merged, thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.