formats: accelerate XMA variable-length code lookup #294
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/lobomfz--VIctory-xmem!294
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-294"
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?
@lgtlgt0015-code on GitHub · 2026-12-03 06:10 UTC · original
lgtlgt0015-code:codex/xma-prefix-code-lookup→main· +215 −4 · 1 files · 1 commits · closed without mergingWhat changed
The XMA decoder currently performs a five-byte lookahead and binary-searches a full codebook for every variable-length symbol. Use a nine-bit prefix table to resolve unambiguous symbols after reading at most two bytes. Ambiguous prefixes use the existing 32-bit lookahead and search only the matching subrange. The codebook and decoder interfaces are unchanged.
Validation
victory-formatstest binary: 54 passed, 8 ignored.Ryzen 7 5700X on Windows. Optimized
rustc --test -C opt-level=3builds in base/branch/branch/base order. Each reported run uses the median of seven measurements of 5,120 frames. The table reports the median of the two runs per version.The measurements cover
Decoder::decodewith generated audio frames. In-game performance on Wine and Linux remains unmeasured.AI-assisted with Codex.
@goldfishdev on GitHub · 2026-12-03 06:26 UTC · original
Test on Linux and come back.
Pull request closed