Skip to content

perf(log): keep explicit format macros off stream path - #4559

Merged
zackees merged 1 commit into
masterfrom
fix/2982-log-format-bloat
Sep 24, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2982-log-format-bloat

Conversation

@zackees

@zackees zackees commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • restore _F logging macros as explicit printf-format paths
  • keep unsuffixed one-argument stream compatibility unchanged
  • cover warning, error, print, async, conditional, once, and rate-limited expansion paths

Measured result

ESP32-S3 Blink with FASTLED_LOG_VERBOSITY=1:

  • attributed flash: 387,006 B -> 381,678 B (-5,328 B)
  • firmware flash: 473,372 B -> 467,328 B (-6,044 B)
  • RAM: unchanged at 41,887 B attributed
  • emitRmtChannelWarning: 712 B -> 280 B; disassembly replaces inline sstream construction/destruction and log_emit calls with direct log_emit_f calls

Validation

  • bash test log --clean
  • bash test log --debug
  • bash lint src/fl/log/log.h tests/fl/log/log.hpp
  • local clud-review: no blocking findings

Closes #2982

Restore the original printf semantics of _F logging macros so single-argument literals avoid constructing an sstream at each call site. Preserve unified stream compatibility on the unsuffixed macros.\n\nCloses #2982
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 24, 2026
@zackees
zackees merged commit 375009b into master Sep 24, 2026
118 of 119 checks passed
@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2d158a93-9823-4e07-a917-1b64b3c3d99e

📥 Commits

Reviewing files that changed from the base of the PR and between 05248f4 and 815701c.

📒 Files selected for processing (2)
  • src/fl/log/log.h
  • tests/fl/log/log.hpp
 _________________________________
< Please hold while I ignore you. >
 ---------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

zackees added a commit that referenced this pull request Sep 24, 2026
* chore(ci): report observed Actions runner time by commit

* ci: add manual shared native pilot

* perf(ci): live compile gate and nightly example groups (#4545)

* perf(ci): split live compile gate from nightly example sweep

Closes #4544

* ci: run the macOS compile gate on pull requests

* perf(ci): parallelize bounded example gate and report build bytes

* perf(ci): bound Linux compile gate to two jobs

* fix(ci): invalidate example group build configuration cache

* fix(gfx): keep RGBW bind path float-free on soft-float ARM

* fix(ci): grant reusable ATtiny build workflow permissions

* docs(tasks): record example gate and validation results

* ci: cover board-only AutoResearch nightly and stabilize example runner

* fix(ci): remove unused OIDC grants

- Address CodeRabbit comment 4081638666: full sanitizer permission scope.

- Address CodeRabbit comment 4081638678: nightly examples permission scope.

* docs: mark OIDC review feedback addressed

* fix(ci): show manual nightly runs in examples badge (#4547)

* ci: reserve hosted macOS tests for full validation (#4548)

* ci: gate board matrix behind explicit CI labels

Generate board job selection from the fbuild workflow registry, preserve exact PR head checkouts, and validate label transitions. Phase 1 of #4543.

* ci: include emulator and wasm families in selector

Link board labels to companion QEMU, bloat, and AVR8JS checks and make longer-running test families opt-in except on ci-full.

* test: align CI guards with opt-in full board sweep

Keep manual dispatch on the new selector workflow and pin the ESP32-S3 opt-in job to full example coverage.

* ci: validate GitHub label catalog on PRs

Fail the stable selection check when emitted labels are missing from repository metadata.

* ci: keep validator dispatch distinct from full matrix

A manual validation run inventories labels only; it cannot claim the complete board matrix executed.

* ci: run native PR tests on the exact head commit

Pin reusable Linux, Windows, and macOS unit/example checkouts to the tested PR SHA, matching selected board and emulator jobs.

* docs: describe opt-in board CI selection

* ci: run bounded native smoke by default and full suites on label

* docs: compare routine FastLED CI against full sweep

* ci: emit platform-neutral LF smoke targets

* ci: require exact-SHA full evidence before release

* ci: verify exact full CI cells and recheck release head

* test(audio): cover PCM edge case regressions

* test(stl): cover container edge case regressions

* test(ci): cover false-green build checks

* test(stl): construct erase fixtures through public API

* test(stl): detect empty span iterator dereference

* fix(audio): handle PCM analysis edge cases

* fix(stl): harden container edge cases

* fix(ci): reject false-green build checks

* test(audio): respect noise-gate hysteresis sequence

* test(stl): model comparable span iterators

* fix(stl): keep vector allocation failure recoverable

* docs: record issue 4528 validation plan

* fix(stl): preserve empty span pointer identity

* fix(stl): validate span pointer ranges

* chore(stl): satisfy span diagnostics lint

* docs: record issue 4528 final validation

* refactor(audio): move PCM cache reset implementation

* fix(ci): persist only completed fingerprint scopes (#4553)

Keep test-result caches independent, invalidate legacy entries, and guard early exits with source and auxiliary-input validation.

Closes #4550

* perf(ci): use upstream Wild for Linux native test links (#4552)

* perf(ci): select pinned reld for native test links

* docs: record uniform native-linker selection lesson

* perf(ci): scope upstream Wild linker to Linux

* perf(ci): limit runtime dependency deployment to Windows

* fix(ci): fail closed on lint prerequisites and compile deadlines

Closes #4554

* test(ci): isolate native linker override in cache fast-path test (#4556)

* perf(log): keep explicit format macros off stream path (#4559)

Restore the original printf semantics of _F logging macros so single-argument literals avoid constructing an sstream at each call site. Preserve unified stream compatibility on the unsuffixed macros.\n\nCloses #2982

* chore(ci): report observed Actions runner time by commit

* ci: add manual shared native pilot

* revert(ci): remove superseded native pilot

The merged fractional CI implementation now owns native smoke and full-suite routing, so keep this PR focused on the reusable Actions usage collector.

Co-Authored-By: Claude Code <[email protected]>

* fix(ci): make Actions usage metadata unambiguous

Normalize accepted commit SHAs before filtering API results and distinguish latest run status from all-attempt runner time.

Co-Authored-By: Claude Code <[email protected]>

* fix(ci): keep compile deadlines type-safe

Pass bounded integer timeouts to RunningProcess and retain generator cleanup typing so the Python type gate remains green.

Co-Authored-By: Claude Code <[email protected]>

---------

Co-authored-by: Claude Code <[email protected]>
@zackees
zackees deleted the fix/2982-log-format-bloat branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bloat: move more FL_WARN/FL_ERROR per-call-site code into log_emit (shrink call-site burst from ~200 B to ~50 B)

1 participant