Repository navigation
Description
bloat regression fails on master and on every branch cut from it. It needs an explicit decision, not a rerun.
The failure
esp32s3-bloat-regression: FAIL — total_flash=341,250 B exceeds baseline=341,052 B by 198 B.
esp32s3-bloat-regression: if the regression is intentional, update tests/data/esp32s3_bloat_baseline.txt in the same PR.
tests/data/esp32s3_bloat_baseline.txt holds 341052, last touched by #4010. Nothing has updated it since.
Where it came from
#4140 (perf/minimp3-fixed-point) was merged with bloat regression already red — see its check list, bloat regression fail 22s. The merge commit is a1f30ffbeb. That PR adds src/third_party/minimp3/minimp3_synth_fixed.h and reworks the decoder, which is a plausible source of 198 B of ESP32-S3 flash.
Observed again on PR #4141's run, whose only change is a one-line dependency cap in pyproject.toml — so the regression is inherited from master, not introduced there.
Note this was briefly masked: running-process 4.10.10 broke uv sync repo-wide on 2026-09-02, so bloat regression was dying at dependency install (19-22 s) before it ever got to measuring. Now that #4141 has landed, the job runs to completion and reports the real number (3 m 11 s).
The decision this needs
Someone who owns the mp3 work has to pick one, and it is not obviously the first:
- Accept it — 198 B is the cost of fixed-point minimp3; update the baseline to
341250with a comment saying why. - Reclaim it — if the fixed-point path is going to be reworked anyway, the flash may come back on its own.
- Gate it — perf(mp3): add a fast fixed-point mode at Helix parity, keeping today's decoder as HQ #4139 proposes keeping today's decoder as HQ alongside a fast fixed-point mode; if the fixed-point tables end up behind a build flag, the default build may not pay the 198 B at all.
Option 1 should not be applied reflexively just to get CI green, because #4138 and #4139 are actively questioning whether this decoder stays in its current form.
Why file this separately
There are two independent red checks on master from the same merge, and they have different owners and different fixes:
bloat regression— this issue.audit— the SIMD-not-slower-than-scalar gate infl_codec(speedup=0.935x), reported on perf(mp3): fixed-point minimp3 is ~1.6x slower than the Helix it replaced, and nothing gates it #4138.
Both need to clear before the next PR merges. Leaving master red on two checks trains reviewers to merge through red, which is the concern #4132 already raises about the transient code=113 failures.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Sep 3, 2026
The attribution in this issue is wrong, and it matters for #4138/#4139.
#4140 contributes 0 B to this. There is no minimp3 symbol in the Blink ELF the gate measures — the decoder is not linked in at all. I built and symbol-diffed both commits:
f9909d5b7c— pre-TM19088d2a841c66— masterThe cause is
3a61ded84c(TM1908, Closes #1441): a newcasein theChannel::showPixelsswitch force-links the encoder into every clockless build. Identical mechanism to TM1812 in #3945, which bumped this same baseline by 277 B.It looked like #4140 because of ordering, not causation: TM1908's own bloat run was concurrency-cancelled after 19 s, and the following master run died in
uv synconrunning-process==4.10.10. The first run that got far enough to measure was the one after #4141 landed — by which time #4140 had merged in between.So the 198 B is not a cost of fixed-point minimp3, and #4138/#4139 should not carry it as one. The mp3 decoder's flash cost on this example is zero.
Option 1 (accept), for the corrected reason — it is the price of a chipset that was deliberately added. #3947 tracks reclaiming it properly. PR: #4143.
The
auditfailure noted at the bottom of this issue is unaffected and stays with #4138.test: accept TM1908 encoder flash cost