You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(autoresearch): use FL_PRINT instead of esp_rom_printf in on-device benchmarks #2540
The AutoResearchWave8Expand.h boot benchmark added in PR #2539 prints results via esp_rom_printf. That was chosen as a workaround so output would reach the USB-Serial-JTAG console (= COM25) without requiring the testSimd RPC, which is currently blocked by a UART0-vs-USB-JTAG routing issue (see companion issue + #2536/#2538). It worked, but it's not the right long-term choice:
FL_PRINT is much faster than esp_rom_printf. esp_rom_printf is a ROM function not optimized for hot paths and lacks the buffering / log-level filtering / timestamping that the rest of the codebase relies on.
Mixes two log mechanisms in one file. The rest of AutoResearch.ino (and FastLED broadly) uses FL_PRINT/FL_ERROR. The benchmark using a different rail is a project-convention divergence that will confuse future maintainers.
No log filtering / log level.esp_rom_printf always emits regardless of CONFIG_LOG_DEFAULT_LEVEL. Noisier logs, no way to suppress at runtime.
Proposal
Switch every benchmark output in the AutoResearch example (and any future on-device benchmark) to FL_PRINT.
Coupled fix: once the routing block is resolved (see the testSimd RPC issue) FL_PRINT reliably reaches the host capture tool, so the esp_rom_printf workaround becomes unnecessary.
Verified resolved on master: grep -rn esp_rom_printf examples/AutoResearch/ returns 0 matches. The conversion was done in #2751 (chore(esp32): eliminate runtime esp_rom_printf call sites, merged). Closing as no longer reproducible.
Activity
refactor(autoresearch): wave8 expansion bench is RPC-driven + adds tr…
perf(wave8): byte-indexed expansion LUT (#2526) — 1.66x on ESP32-P4 (#…
chore(esp32): eliminate runtime esp_rom_printf call sites (#2751)
zackees commentedon Jun 5, 2026
Verified resolved on master:
grep -rn esp_rom_printf examples/AutoResearch/returns 0 matches. The conversion was done in #2751 (chore(esp32): eliminate runtime esp_rom_printf call sites, merged). Closing as no longer reproducible.