Repository navigation
fix(mp3): refresh the fixed-point CPU baseline after the IMDCT kernel - #4126
Conversation
Master is red on the MP3 CPU audit:
RuntimeError: callgrind attribution disappeared for
minimp3-fixed/...mp3d_dequant(int, int, int, int)
My sequencing error. #4110's baselines were harvested from a branch based on
master *before* #4109, then #4109 merged first and #4110 second -- so the
committed profile describes a decoder that no longer exists. The gate was
right to fire; the baseline was stale.
What actually changed, measured on the same CI host (AMD EPYC 9V74):
- `mp3d_imdct36_twiddle` enters the callgrind set -- #4109 introduced it.
- `mp3d_dequant` leaves it, having fallen below the attribution threshold.
- Instructions 657,659,874 -> 659,084,514, up 0.22%.
The rise is an artifact of the audit build, not a regression in what ships.
`_common_compile_flags` passes `-fno-inline`, so #4109's dispatching wrapper
costs a real call per band here; at -Os it is a static function with a single
call site and inlines away. The shipping measurement for that change was
-2.34% instructions, taken on an optimised build.
**The operation ledger is byte-identical for both backends**, asserted before
writing rather than assumed. That is the invariant that matters: it is the
exact, host-independent count of the arithmetic the algorithm performs, and it
is unchanged because the audit compiles `-DMINIMP3_NO_SIMD` and #4109 only adds
a vector path. Only the host and codegen halves are refreshed.
Refs #4110, #4109
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ByD5ZKrnFJuchjRmPiQdd5
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change refreshes ChangesCodec benchmark refresh
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This PR refreshes the committed MP3 CPU audit measurements without changing shipped decoder behavior; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Master is red on the MP3 CPU audit.
My sequencing error. #4110's baselines were harvested from a branch based on master before #4109, then #4109 merged first and #4110 second — so the committed profile describes a decoder that no longer exists. The gate was right to fire; the baseline was stale.
What changed, on the same CI host
mp3d_imdct36_twiddlemp3d_dequantThe rise is an artifact of the audit build, not a regression in what ships.
_common_compile_flagspasses-fno-inline, so #4109's dispatching wrapper costs a real call per band here. At-Osit is a static function with a single call site and inlines away — the shipping measurement for that change was −2.34% instructions on an optimised build, via Callgrind.The invariant held
The operation ledger is byte-identical for both backends, asserted before writing rather than assumed. That is the figure that matters: the exact, host-independent count of the arithmetic the algorithm performs. It is unchanged because the audit compiles
-DMINIMP3_NO_SIMDand #4109 only adds a vector path — which is exactly the property I checked for before merging #4118, and it held.Only the host and codegen halves are refreshed.
Refs #4110, #4109
Summary by CodeRabbit
minimp3-fixedaudio decoding backend.