Skip to content

fix(esp32): move _FL_BIT macro out of FASTLED_UNUSABLE_PIN_MASK ifndef - #2277

Merged
zackees merged 2 commits into
masterfrom
fix-esp32-fl-bit-macro
Apr 17, 2026
Merged

zackees merged 2 commits into
masterfrom
fix-esp32-fl-bit-macro

Conversation

@zackees

@zackees zackees commented Apr 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Move _FL_BIT macro definition outside the FASTLED_UNUSABLE_PIN_MASK ifndef guard so it is always defined on ESP32.
  • Apply formatter changes to ci/autoresearch/gpio.py and ci/github_project_sync.py.
  • Forward KeyboardInterrupt in FbuildSerialAdapter.reset_device so Ctrl+C is not swallowed by the bare except.

Test plan

  • ESP32 compile passes with the macro always available
  • Autoresearch flows still work for ESP32 boards
  • Ctrl+C during reset propagates correctly

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Enhanced keyboard interrupt handling during serial device reset operations to prevent unexpected behavior.
  • Style

    • Improved code formatting and console output readability across configuration and debugging utilities.
  • Chores

    • Optimized conditional compilation directives for cleaner build configuration.

zackees and others added 2 commits April 17, 2026 16:05
Previously _FL_BIT(B) was only defined when FASTLED_UNUSABLE_PIN_MASK was
NOT externally defined. However, _FL_BIT is also used unconditionally
further down the file (e.g. in the fallback SOC_GPIO_VALID_GPIO_MASK
definition around line 164 and 166), so users who supplied their own
FASTLED_UNUSABLE_PIN_MASK via a build flag (e.g. ESP32-PICO-V3-02 users
who need to re-enable GPIO7/8/20) hit "_FL_BIT undeclared" compile
errors.

Moving the single-line #define outside the ifndef guard makes the macro
always available without changing any existing behavior.

Fixes #1372

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Reformat long print statements and function signatures; forward
KeyboardInterrupt in FbuildSerialAdapter.reset_device so Ctrl+C is
not swallowed by the bare except.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit 057890d into master Apr 17, 2026
68 of 85 checks passed
@zackees
zackees deleted the fix-esp32-fl-bit-macro branch April 17, 2026 23:26
@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 35f86c2b-1f89-445d-a0d7-f79e78e01094

📥 Commits

Reviewing files that changed from the base of the PR and between 055a9b4 and f7fa18d.

📒 Files selected for processing (4)
  • ci/autoresearch/gpio.py
  • ci/github_project_sync.py
  • ci/util/serial_interface.py
  • src/platforms/esp/32/core/fastpin_esp32.h

📝 Walkthrough

Walkthrough

This pull request comprises four targeted improvements across CI and hardware-related files: reformatting console output for readability in GPIO operations, standardizing code style in GitHub project synchronization, introducing explicit keyboard interrupt handling in serial device operations, and reordering preprocessor guards for macro definition sequencing.

Changes

Cohort / File(s) Summary
Console Output Formatting
ci/autoresearch/gpio.py, ci/github_project_sync.py
Adjusted multi-line print statements and function signatures for improved readability; reformatted error messages and return statements into single-line expressions without changing underlying logic.
Serial Device Interrupt Handling
ci/util/serial_interface.py
Added explicit KeyboardInterrupt catch-forward-reraise pattern in FbuildSerialAdapter.reset_device() to handle user interruption separately from general exception handling.
Preprocessor Macro Ordering
src/platforms/esp/32/core/fastpin_esp32.h
Reordered conditional compilation guards to ensure _FL_BIT(B) macro is defined before the optional FASTLED_UNUSABLE_PIN_MASK block.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰✨ Console lines now split just right,
Interrupt handling shines so bright!
Preprocessor guards dance in place,
Code cleanup with rabbity grace! 🌿

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-esp32-fl-bit-macro

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 and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1159.06ms

Top 5 Slowest Headers

  1. FastLED.h - 879.92ms
  2. fl/fastled.h - 382.68ms
  3. fl/task/executor.h - 283.04ms
  4. crgb.h - 219.02ms
  5. fl/gfx/crgb.h - 217.69ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (879.9ms)
⚠️ Header fl/fastled.h exceeds 150ms (382.7ms)
⚠️ Header fl/task/executor.h exceeds 150ms (283.0ms)
⚠️ Header crgb.h exceeds 150ms (219.0ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (217.7ms)
⚠️ Header fl/math/ease.h exceeds 150ms (212.8ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (210.4ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (148.6ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (139.1ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (138.4ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (137.3ms)
⚠️ Header platforms/thread.h exceeds 50ms (137.2ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (137.2ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (137.1ms)
⚠️ Header fl/task/promise.h exceeds 50ms (120.9ms)
⚠️ Header fl/ui.h exceeds 50ms (120.7ms)
⚠️ Header fl/stl/json.h exceeds 50ms (77.9ms)
⚠️ Header fl/stl/function.h exceeds 50ms (72.1ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (63.1ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (59.8ms)
⚠️ Header platforms.h exceeds 50ms (54.9ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (54.8ms)
⚠️ Template instantiation time is high (53.1%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-18 00:10:36
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    2,093.15 ms
Frontend Time:             18.11 ms (0.9%)
Backend Time:              195.99 ms (9.4%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    12174.02 ms (581.6%)
Templates                   632.14 ms ( 30.2%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1470.9 ms - FastLED.h (SLOW)
   718.0 ms - fl/task/executor.h (SLOW)
   502.1 ms - fl/fastled.h (SLOW)
   391.9 ms - fl/task/scheduler.h (SLOW)
   382.2 ms - fl/stl/singleton.h (SLOW)
   381.5 ms - fl/stl/thread_local.h (SLOW)
   380.3 ms - fl/stl/thread.h (SLOW)
   380.2 ms - platforms/thread.h (SLOW)
   380.2 ms - platforms/stub/thread_stub.h (SLOW)
   380.1 ms - platforms/stub/thread_stub_stl.h (SLOW)
   312.2 ms - fl/task/promise.h (SLOW)
   302.7 ms - crgb.h (SLOW)
   301.2 ms - fl/gfx/crgb.h (SLOW)
   296.0 ms - fl/math/ease.h (SLOW)
   293.5 ms - fl/math/fixed_point.h (SLOW)
   262.4 ms - fl/stl/function.h (SLOW)
   139.8 ms - fl/math/fixed_point/s4x12.h (SLOW)
   122.3 ms - fl/ui.h (SLOW)
   118.7 ms - fl/math/sin32.h (SLOW)
   115.5 ms - fl/math/simd.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1470.9ms)
  ├─  718.0 ms - fl/task/executor.h
  │ ├─  391.9 ms - fl/task/scheduler.h
  │ │ ├─  382.2 ms - fl/stl/singleton.h
  │ │ │ └─  381.5 ms - fl/stl/thread_local.h
  │ │ │   └─  380.3 ms - fl/stl/thread.h
  │ │ │     └─  380.2 ms - platforms/thread.h
  │ │ │       └─  380.2 ms - platforms/stub/thread_stub.h
  │ │ │         └─  380.1 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  374.4 ms - thread
  │ │ │             ├─  184.0 ms - std_thread.h
  │ │ │             └─  175.2 ms - this_thread_sleep.h
  │ │ └─    8.8 ms - fl/task/task.h
  │ │   └─    3.7 ms - fl/trace.h
  │ │     ├─    2.4 ms - fl/stl/chrono.h
  │ │     └─    1.0 ms - fl/stl/tuple.h
  │ ├─  312.2 ms - fl/task/promise.h
  │ │ ├─  262.4 ms - fl/stl/function.h
  │ │ │ ├─  115.2 ms - fl/stl/vector.h
  │ │ │ │ ├─   79.8 ms - fl/math/math.h
  │ │ │ │ │ └─   74.0 ms - fl/stl/undef.h
  │ │ │ │ │   └─  122.2 ms - stdlib.h
  │ │ │ │ │     ├─   60.0 ms - cstdlib
  │ │ │ │ │     │ └─  122.2 ms - stdlib.h
  │ │ │ │ │     │   ├─   60.0 ms - cstdlib
  │ │ │ │ │     │   ├─   12.0 ms - types.h
  │ │ │ │ │     │   ├─    0.6 ms - floatn.h
  │ │ │ │ │     │   └─    0.5 ms - locale_t.h
  │ │ │ │ │     ├─   12.0 ms - types.h
  │ │ │ │ │     │ ├─   12.0 ms - types.h
  │ │ │ │ │     │ │ ├─   12.0 ms - types.h
  │ │ │ │ │     │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    2.2 ms - select.h
  │ │ │ │ │     │ │ └─    1.9 ms - endian.h
  │ │ │ │ │     │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    2.2 ms - select.h
  │ │ │ │ │     │ │ └─    0.6 ms - sigset_t.h
  │ │ │ │ │     │ └─    1.9 ms - endian.h
  │ │ │ │ │     ├─    0.6 ms - floatn.h
  │ │ │ │ │     └─    0.5 ms - locale_t.h
  │ │ │ │ ├─   18.9 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   12.9 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    8.4 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │ │       └─    0.5 ms - fl/stl/utility.h
  │ │ │ │ ├─    5.4 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.8 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.8 ms - fl/stl/functional.h
  │ │ │ ├─   87.4 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   65.9 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   59.2 ms - fl/stl/move.h
  │ │ │ │ ├─   16.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   15.3 ms - platforms/atomic.h
  │ │ │ │ │   └─   15.2 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ │ ├─   44.8 ms - fl/stl/variant.h
  │ │ │ │ └─   43.0 ms - fl/stl/new.h
  │ │ │ │   └─   42.9 ms - platforms/new.h
  │ │ │ │     └─   42.9 ms - platforms/shared/new.h
  │ │ │ │       └─   32.9 ms - new
  │ │ │ │         ├─   15.8 ms - c++config.h
  │ │ │ │         │ └─    5.4 ms - os_defines.h
  │ │ │ │         └─    1.8 ms - version.h
  │ │ │ ├─    4.8 ms - fl/stl/algorithm.h
  │ │ │ │ └─    2.0 ms - fl/math/random.h
  │ │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ │ └─    4.6 ms - fl/stl/compiler_control.h
  │ │ └─   44.5 ms - fl/stl/string.h
  │ │   ├─   12.9 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.1 ms - fl/stl/not_null.h
  │ │   │ └─    0.9 ms - fl/stl/iterator.h
  │ │   ├─    8.8 ms - fl/stl/span.h
  │ │   │ └─    3.5 ms - fl/math/geometry.h
  │ │   ├─    5.7 ms - fl/stl/string_view.h
  │ │   └─    1.5 ms - fl/stl/optional.h
  │ ├─   11.7 ms - platforms/await.h
  │ │ └─   11.3 ms - platforms/coroutine_runtime.h
  │ │   └─    9.6 ms - fl/system/engine_events.h
  │ │     ├─    5.0 ms - fl/math/screenmap.h
  │ │     │ └─    3.7 ms - fl/stl/flat_map.h
  │ │     └─    3.1 ms - fl/math/xymap.h
  │ │       └─    0.8 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  502.1 ms - fl/fastled.h
  │ ├─  302.7 ms - crgb.h
  │ │ ├─  301.2 ms - fl/gfx/crgb.h
  │ │ │ └─  296.0 ms - fl/math/ease.h
  │ │ │   └─  293.5 ms - fl/math/fixed_point.h
  │ │ │     ├─  139.8 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  118.7 ms - fl/math/sin32.h
  │ │ │     │ │ └─  115.5 ms - fl/math/simd.h
  │ │ │     │ │   └─  115.0 ms - fl/math/simd/types.h
  │ │ │     │ │     └─  114.7 ms - platforms/simd.h
  │ │ │     │ ├─    1.0 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.2 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   18.9 ms - fl/math/fixed_point/s8x8.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   86.0 ms - platforms.h
  │ │ └─   86.0 ms - platforms/stub/fastled_stub.h
  │ │   ├─   47.8 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   47.8 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   40.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   38.6 ms - fl/id_tracker.h
  │ │   │   │   └─   37.6 ms - fl/stl/mutex.h
  │ │   │   │     └─   37.5 ms - platforms/mutex.h
  │ │   │   │       └─   37.4 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    6.5 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   38.1 ms - platforms/stub/clockless_stub.h
  │ │     └─   38.1 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   13.7 ms - fl/channels/data.h
  │ │       │ └─   10.3 ms - fl/channels/config.h
  │ │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.4 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.7 ms - fl/chipsets/spi.h
  │ │       ├─   13.4 ms - fl/system/log.h
  │ │       │ └─   12.9 ms - fl/stl/strstream.h
  │ │       ├─    2.4 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.1 ms - fl/channels/driver.h
  │ ├─   42.1 ms - colorutils.h
  │ │ └─   41.3 ms - fl/gfx/colorutils.h
  │ │   ├─    8.8 ms - fl/gfx/blur.h
  │ │   │ └─    4.7 ms - fl/gfx/canvas.h
  │ │   │   └─    2.9 ms - fl/math/alpha.h
  │ │   └─    3.2 ms - fl/gfx/fill.h
  │ ├─   25.6 ms - pixel_controller.h
  │ │ ├─   18.8 ms - pixel_iterator.h
  │ │ │ └─   18.6 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.8 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    1.0 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.6 ms - rgbw.h
  │ │   └─    2.4 ms - fl/gfx/rgbw.h
  │ └─   23.5 ms - pixeltypes.h
  │   ├─   19.6 ms - lib8tion.h
  │   │ ├─   10.1 ms - fl/math/math8.h
  │   │ │ ├─    5.3 ms - fl/math/intmap.h
  │   │ │ │ └─    4.1 ms - platforms/intmap.h
  │   │ │ ├─    2.5 ms - fl/math/scale8.h
  │   │ │ │ └─    2.5 ms - platforms/scale8.h
  │   │ │ │   └─    1.0 ms - platforms/shared/scale8.h
  │   │ │ └─    2.2 ms - platforms/math8.h
  │   │ │   └─    1.8 ms - platforms/shared/math8.h
  │   │ ├─    2.2 ms - fl/math/beat.h
  │   │ │ └─    1.2 ms - fl/math/trig8.h
  │   │ │   └─    1.1 ms - platforms/trig8.h
  │   │ │     └─    1.0 ms - platforms/shared/trig8.h
  │   │ └─    0.6 ms - fl/math/qfx.h
  │   └─    3.4 ms - crgb.hpp
  ├─  122.3 ms - fl/ui.h
  │ ├─   79.6 ms - fl/stl/json.h
  │ │ └─   61.6 ms - fl/stl/json/types.h
  │ │   └─    7.4 ms - fl/stl/limits.h
  │ ├─   10.5 ms - fl/ui_impl.h
  │ │ └─    9.8 ms - platforms/ui_defs.h
  │ │   ├─    2.2 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.5 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.6 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/checkbox.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.9 ms - platforms/shared/ui/json/dropdown.h
  │ └─    6.1 ms - fl/stl/url.h
  ├─   29.2 ms - chipsets.h
  │ ├─   11.9 ms - fl/chipsets/ucs7604.h
  │ │ └─    9.0 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    6.9 ms - fl/chipsets/apa102.h
  │ ├─    1.8 ms - fl/chipsets/lpd880x.h
  │ ├─    0.9 ms - fl/chipsets/encoders/ws2816.h
  │ └─    0.8 ms - fl/chipsets/ws2801.h
  └─   27.1 ms - fl/stl/stdint.h
    └─   26.7 ms - platforms/int.h
      └─   26.4 ms - platforms/shared/int.h
        └─   26.3 ms - platforms/shared/int_linux.h
fl/task/executor.h (718.0ms)
  ├─  391.9 ms - fl/task/scheduler.h
  │ ├─  382.2 ms - fl/stl/singleton.h
  │ │ └─  381.5 ms - fl/stl/thread_local.h
  │ │   └─  380.3 ms - fl/stl/thread.h
  │ │     └─  380.2 ms - platforms/thread.h
  │ │       └─  380.2 ms - platforms/stub/thread_stub.h
  │ │         └─  380.1 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  374.4 ms - thread
  │ │             ├─  184.0 ms - std_thread.h
  │ │             │ ├─   69.3 ms - tuple
  │ │             │ ├─   30.1 ms - iosfwd
  │ │             │ ├─   23.1 ms - refwrap.h
  │ │             │ ├─   12.3 ms - gthr.h
  │ │             │ └─    6.3 ms - unique_ptr.h
  │ │             └─  175.2 ms - this_thread_sleep.h
  │ │               ├─  132.3 ms - chrono.h
  │ │               └─    4.1 ms - cerrno
  │ └─    8.8 ms - fl/task/task.h
  │   └─    3.7 ms - fl/trace.h
  │     ├─    2.4 ms - fl/stl/chrono.h
  │     └─    1.0 ms - fl/stl/tuple.h
  ├─  312.2 ms - fl/task/promise.h
  │ ├─  262.4 ms - fl/stl/function.h
  │ │ ├─  115.2 ms - fl/stl/vector.h
  │ │ │ ├─   79.8 ms - fl/math/math.h
  │ │ │ │ └─   74.0 ms - fl/stl/undef.h
  │ │ │ │   └─  122.2 ms - stdlib.h
  │ │ │ │     ├─   60.0 ms - cstdlib
  │ │ │ │     │ └─  122.2 ms - stdlib.h
  │ │ │ │     │   ├─   60.0 ms - cstdlib
  │ │ │ │     │   │ └─  122.2 ms - stdlib.h
  │ │ │ │     │   ├─   12.0 ms - types.h
  │ │ │ │     │   │ ├─   12.0 ms - types.h
  │ │ │ │     │   │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    2.2 ms - select.h
  │ │ │ │     │   │ └─    1.9 ms - endian.h
  │ │ │ │     │   ├─    0.6 ms - floatn.h
  │ │ │ │     │   └─    0.5 ms - locale_t.h
  │ │ │ │     ├─   12.0 ms - types.h
  │ │ │ │     │ ├─   12.0 ms - types.h
  │ │ │ │     │ │ ├─   12.0 ms - types.h
  │ │ │ │     │ │ │ ├─   12.0 ms - types.h
  │ │ │ │     │ │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    2.2 ms - select.h
  │ │ │ │     │ │ │ └─    1.9 ms - endian.h
  │ │ │ │     │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    2.2 ms - select.h
  │ │ │ │     │ │ │ └─    0.6 ms - sigset_t.h
  │ │ │ │     │ │ └─    1.9 ms - endian.h
  │ │ │ │     │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │     │ ├─    2.2 ms - select.h
  │ │ │ │     │ │ └─    0.6 ms - sigset_t.h
  │ │ │ │     │ └─    1.9 ms - endian.h
  │ │ │ │     ├─    0.6 ms - floatn.h
  │ │ │ │     └─    0.5 ms - locale_t.h
  │ │ │ ├─   18.9 ms - fl/stl/allocator.h
  │ │ │ │ └─   12.9 ms - fl/stl/bitset.h
  │ │ │ │   └─    8.4 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │       └─    0.5 ms - fl/stl/utility.h
  │ │ │ ├─    5.4 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.8 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.8 ms - fl/stl/functional.h
  │ │ ├─   87.4 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   65.9 ms - fl/stl/type_traits.h
  │ │ │ │ └─   59.2 ms - fl/stl/move.h
  │ │ │ ├─   16.3 ms - fl/stl/atomic.h
  │ │ │ │ └─   15.3 ms - platforms/atomic.h
  │ │ │ │   └─   15.2 ms - platforms/shared/atomic.h
  │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ ├─   44.8 ms - fl/stl/variant.h
  │ │ │ └─   43.0 ms - fl/stl/new.h
  │ │ │   └─   42.9 ms - platforms/new.h
  │ │ │     └─   42.9 ms - platforms/shared/new.h
  │ │ │       └─   32.9 ms - new
  │ │ │         ├─   15.8 ms - c++config.h
  │ │ │         │ └─    5.4 ms - os_defines.h
  │ │ │         │   └─    5.0 ms - features.h
  │ │ │         └─    1.8 ms - version.h
  │ │ ├─    4.8 ms - fl/stl/algorithm.h
  │ │ │ └─    2.0 ms - fl/math/random.h
  │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ └─    4.6 ms - fl/stl/compiler_control.h
  │ └─   44.5 ms - fl/stl/string.h
  │   ├─   12.9 ms - fl/stl/basic_string.h
  │   │ ├─    1.1 ms - fl/stl/not_null.h
  │   │ └─    0.9 ms - fl/stl/iterator.h
  │   ├─    8.8 ms - fl/stl/span.h
  │   │ └─    3.5 ms - fl/math/geometry.h
  │   ├─    5.7 ms - fl/stl/string_view.h
  │   └─    1.5 ms - fl/stl/optional.h
  ├─   11.7 ms - platforms/await.h
  │ └─   11.3 ms - platforms/coroutine_runtime.h
  │   └─    9.6 ms - fl/system/engine_events.h
  │     ├─    5.0 ms - fl/math/screenmap.h
  │     │ └─    3.7 ms - fl/stl/flat_map.h
  │     └─    3.1 ms - fl/math/xymap.h
  │       └─    0.8 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/fastled.h (502.1ms)
  ├─  302.7 ms - crgb.h
  │ ├─  301.2 ms - fl/gfx/crgb.h
  │ │ └─  296.0 ms - fl/math/ease.h
  │ │   └─  293.5 ms - fl/math/fixed_point.h
  │ │     ├─  139.8 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  118.7 ms - fl/math/sin32.h
  │ │     │ │ └─  115.5 ms - fl/math/simd.h
  │ │     │ │   └─  115.0 ms - fl/math/simd/types.h
  │ │     │ │     └─  114.7 ms - platforms/simd.h
  │ │     │ │       └─  114.6 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.0 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   19.2 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   18.9 ms - fl/math/fixed_point/s8x8.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   86.0 ms - platforms.h
  │ └─   86.0 ms - platforms/stub/fastled_stub.h
  │   ├─   47.8 ms - platforms/stub/fastspi_stub.h
  │   │ └─   47.8 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   40.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   38.6 ms - fl/id_tracker.h
  │   │   │   └─   37.6 ms - fl/stl/mutex.h
  │   │   │     └─   37.5 ms - platforms/mutex.h
  │   │   │       └─   37.4 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   37.3 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    6.5 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   38.1 ms - platforms/stub/clockless_stub.h
  │     └─   38.1 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   13.7 ms - fl/channels/data.h
  │       │ └─   10.3 ms - fl/channels/config.h
  │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.4 ms - fl/chipsets/led_timing.h
  │       │   └─    1.7 ms - fl/chipsets/spi.h
  │       ├─   13.4 ms - fl/system/log.h
  │       │ └─   12.9 ms - fl/stl/strstream.h
  │       ├─    2.4 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.1 ms - fl/channels/driver.h
  ├─   42.1 ms - colorutils.h
  │ └─   41.3 ms - fl/gfx/colorutils.h
  │   ├─    8.8 ms - fl/gfx/blur.h
  │   │ └─    4.7 ms - fl/gfx/canvas.h
  │   │   └─    2.9 ms - fl/math/alpha.h
  │   └─    3.2 ms - fl/gfx/fill.h
  ├─   25.6 ms - pixel_controller.h
  │ ├─   18.8 ms - pixel_iterator.h
  │ │ └─   18.6 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.8 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    1.0 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.6 ms - rgbw.h
  │   └─    2.4 ms - fl/gfx/rgbw.h
  └─   23.5 ms - pixeltypes.h
    ├─   19.6 ms - lib8tion.h
    │ ├─   10.1 ms - fl/math/math8.h
    │ │ ├─    5.3 ms - fl/math/intmap.h
    │ │ │ └─    4.1 ms - platforms/intmap.h
    │ │ ├─    2.5 ms - fl/math/scale8.h
    │ │ │ └─    2.5 ms - platforms/scale8.h
    │ │ │   └─    1.0 ms - platforms/shared/scale8.h
    │ │ └─    2.2 ms - platforms/math8.h
    │ │   └─    1.8 ms - platforms/shared/math8.h
    │ ├─    2.2 ms - fl/math/beat.h
    │ │ └─    1.2 ms - fl/math/trig8.h
    │ │   └─    1.1 ms - platforms/trig8.h
    │ │     └─    1.0 ms - platforms/shared/trig8.h
    │ └─    0.6 ms - fl/math/qfx.h
    └─    3.4 ms - crgb.hpp
fl/ui.h (122.3ms)
  ├─   79.6 ms - fl/stl/json.h
  │ └─   61.6 ms - fl/stl/json/types.h
  │   └─    7.4 ms - fl/stl/limits.h
  ├─   10.5 ms - fl/ui_impl.h
  │ └─    9.8 ms - platforms/ui_defs.h
  │   ├─    2.2 ms - platforms/shared/ui/json/audio.h
  │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.5 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.6 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/checkbox.h
  │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │   └─    0.9 ms - platforms/shared/ui/json/dropdown.h
  └─    6.1 ms - fl/stl/url.h
chipsets.h (29.2ms)
  ├─   11.9 ms - fl/chipsets/ucs7604.h
  │ └─    9.0 ms - fl/chipsets/encoders/ucs7604.h
  ├─    6.9 ms - fl/chipsets/apa102.h
  ├─    1.8 ms - fl/chipsets/lpd880x.h
  ├─    0.9 ms - fl/chipsets/encoders/ws2816.h
  └─    0.8 ms - fl/chipsets/ws2801.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1470.9 ms - Source: FastLED.h
  2.  1470.9 ms - Total Source: 
  3.   718.0 ms - Source: fl/task/executor.h
  4.   678.6 ms - Total ParseClass: 
  5.   502.1 ms - Source: fl/fastled.h
  6.   391.9 ms - Source: fl/task/scheduler.h
  7.   382.2 ms - Source: fl/stl/singleton.h
  8.   381.5 ms - Source: fl/stl/thread_local.h
  9.   380.3 ms - Source: fl/stl/thread.h
 10.   380.2 ms - Source: platforms/thread.h
 11.   380.2 ms - Source: platforms/stub/thread_stub.h
 12.   380.1 ms - Source: platforms/stub/thread_stub_stl.h
 13.   374.4 ms - Source: thread
 14.   312.2 ms - Source: fl/task/promise.h
 15.   302.7 ms - Source: crgb.h
 16.   301.2 ms - Source: fl/gfx/crgb.h
 17.   296.0 ms - Source: fl/math/ease.h
 18.   293.5 ms - Source: fl/math/fixed_point.h
 19.   262.4 ms - Source: fl/stl/function.h
 20.   225.5 ms - Total InstantiateFunction: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1470.9ms)
    - fl/task/executor.h (718.0ms)
    - fl/fastled.h (502.1ms)
    - fl/task/scheduler.h (391.9ms)
    - fl/stl/singleton.h (382.2ms)
    - fl/stl/thread_local.h (381.5ms)
    - fl/stl/thread.h (380.3ms)
    - platforms/thread.h (380.2ms)
    - platforms/stub/thread_stub.h (380.2ms)
    - platforms/stub/thread_stub_stl.h (380.1ms)

⚠️  Template instantiation time is high (30.2% of total)
✓  Lexing time is acceptable (<10% of total)

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1470.9ms)
2. Consider optimizing fl/task/executor.h (718.0ms)
3. Consider optimizing fl/fastled.h (502.1ms)

================================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant