audio_config: scan individual configuration files in bounded chunks #2448

Open
github-bot wants to merge 1 commit from github-bot/gh-2448 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-27 10:34 UTC · original
kirigayakazima:codex/audio-config-stream-single-blobs → main · +35 −12 · 2 files · 1 commits · open

Claimed in the coordination issue as: AUDIO-CONFIG-STREAM-SINGLE-BLOBS

What and why

The ordinary scan loaded each complete config blob and examined it byte by byte. Reuse the existing incremental marker scanner for each file, resetting offsets at file boundaries. Records spanning read boundaries are recovered. In separate processes, scanning an 8 MiB zero-filled synthetic file gave zero records in both cases and reduced the traced allocation peak from 8,520,807 to 2,230,022 bytes.

Tested

Windows, Python 3.14.7. The regression reproduced on the parent and passed with the change.

  • python -I tests/test_audio_config.py
  • Changed-path no-game-data scan and git diff --check passed.

The integrated checkout passed 6,374 semantic tests across 500 files. An extra 500 randomized synthetic cases matched the in-memory scanner. CI's macOS job failed in the calibrated-texture replacement test, as it did on the unchanged main baseline.

GPUs tested: N/A (CPU-only synthetic tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-27 10:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2448) `kirigayakazima:codex/audio-config-stream-single-blobs` → `main` · +35 −12 · 2 files · 1 commits · open Claimed in the coordination issue as: [AUDIO-CONFIG-STREAM-SINGLE-BLOBS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why The ordinary scan loaded each complete config blob and examined it byte by byte. Reuse the existing incremental marker scanner for each file, resetting offsets at file boundaries. Records spanning read boundaries are recovered. In separate processes, scanning an 8 MiB zero-filled synthetic file gave zero records in both cases and reduced the traced allocation peak from 8,520,807 to 2,230,022 bytes. ### Tested Windows, Python 3.14.7. The regression reproduced on the parent and passed with the change. - `python -I tests/test_audio_config.py` - Changed-path no-game-data scan and `git diff --check` passed. The integrated checkout passed 6,374 semantic tests across 500 files. An extra 500 randomized synthetic cases matched the in-memory scanner. CI's macOS job failed in the calibrated-texture replacement test, as it did on the [unchanged main baseline](https://github.com/ubiquitarianism/leonida/actions/runs/45977772928/job/140433726198). GPUs tested: N/A (CPU-only synthetic tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:34:52 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2448/head:github-bot/gh-2448'
git switch 'github-bot/gh-2448'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2448'
git switch 'github-bot/gh-2448'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2448'
git switch 'github-bot/gh-2448'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2448'
git switch 'main'
git merge --squash 'github-bot/gh-2448'
git switch 'main'
git merge --ff-only 'github-bot/gh-2448'
git switch 'main'
git merge 'github-bot/gh-2448'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.