Repository navigation
Speed up XMA coefficient codebook lookup - #117
Open
andrewDoing wants to merge 2 commits into
Open
andrewDoing wants to merge 2 commits into
andrewDoing wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XMA coefficient decoding searches whole Huffman codebooks for every symbol. Add bounded prefix indices for six books while keeping the original scale-factor search, whose performance regressed in an earlier prototype.
Regression checks cover both ends of every symbol, all codeword/prefix boundaries, and 10,000 random words per book at eight offsets, checking both decoded symbols and consumed lengths. Synthetic mono-frame decoding matched 131,072 baseline PCM samples. Seven-run full-decoder medians for 3,200 frames were 47.204 → 41.077 ms for a common mix and 46.613 → 42.813 ms for a rare-code mix. These are synthetic measurements; real-stream fixtures and gameplay audio were unavailable.
Pinned Rust 1.98.1: both workspace Clippy configurations and asset policy passed; serial workspace tests: 684 passed, 0 failed, 12 ignored with CI's software-adapter setting.
GPT-6.2 Astra implemented and tested the change.