awc_opus: write Ogg pages incrementally to the staged file #2457

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

@⁠kirigayakazima on GitHub · 2026-11-27 11:09 UTC · original
kirigayakazima:codex/awc-opus-incremental-ogg-pages → main · +48 −24 · 2 files · 1 commits · open

Claimed in the coordination issue as: AWC-OPUS-INCREMENTAL-OGG-PAGES

What and why

Feed encoded Ogg pages directly to the existing staged writer. The previous implementation kept every encoded page and joined them into a second complete buffer. On 3,072 synthetic packets, separate processes measured 3,337,055 versus 153,479 bytes peak traced allocation after input creation. SHA-256 and the final granule were identical. The regression checks that writing begins before the next page is encoded.

Tested

Windows, Python 3.14.7. The added regression failed on the parent and passed with this change.

  • python -I tests/test_awc_opus.py
  • Changed-path game-data scan and git diff --check passed. Shared main baseline: 6,374 semantic tests passed across 500 files.

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

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 11:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2457) `kirigayakazima:codex/awc-opus-incremental-ogg-pages` → `main` · +48 −24 · 2 files · 1 commits · open Claimed in the coordination issue as: [AWC-OPUS-INCREMENTAL-OGG-PAGES](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Feed encoded Ogg pages directly to the existing staged writer. The previous implementation kept every encoded page and joined them into a second complete buffer. On 3,072 synthetic packets, separate processes measured 3,337,055 versus 153,479 bytes peak traced allocation after input creation. SHA-256 and the final granule were identical. The regression checks that writing begins before the next page is encoded. ### Tested Windows, Python 3.14.7. The added regression failed on the parent and passed with this change. - `python -I tests/test_awc_opus.py` - Changed-path game-data scan and `git diff --check` passed. Shared main baseline: 6,374 semantic tests passed across 500 files. GPUs tested: N/A (CPU-only). 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 11:10:55 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-27 14:49 UTC · original · reviewed

Verified on the PR branch: python3 -m unittest tests.test_awc_opus -v -> 62 tests OK, including the new incremental Ogg page-write cases. Not approving yet: the branch is 613 commits behind current main, so merging would drag in unrelated history. Please rebase and re-run the suite.

**@⁠MSedgeMC** on GitHub · 2026-11-27 14:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2457#pullrequestreview-6089894610) · **reviewed** Verified on the PR branch: python3 -m unittest tests.test_awc_opus -v -> 62 tests OK, including the new incremental Ogg page-write cases. Not approving yet: the branch is 613 commits behind current main, so merging would drag in unrelated history. Please rebase and re-run the suite.
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/2457/head:github-bot/gh-2457'
git switch 'github-bot/gh-2457'

Merge

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