Skip to content

fix(esp32): make _FL_BIT macro available when FASTLED_UNUSABLE_PIN_MASK is externally defined - #2276

Merged
zackees merged 1 commit into
masterfrom
fix-esp32-fl-bit-macro
Apr 17, 2026
Merged

zackees merged 1 commit into
masterfrom
fix-esp32-fl-bit-macro

Conversation

@zackees

@zackees zackees commented Apr 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Move the _FL_BIT(B) helper macro out of the #ifndef FASTLED_UNUSABLE_PIN_MASK block in src/platforms/esp/32/core/fastpin_esp32.h so that it is always defined.

Previously _FL_BIT was only defined when the user did NOT override FASTLED_UNUSABLE_PIN_MASK. However the macro is also used unconditionally further down the file (inside the SOC_GPIO_VALID_GPIO_MASK fallback for older ESP-IDF versions at lines 164/166). As a result, users who tried to override the pin mask via a build flag — for example, ESP32-PICO-V3-02 users who need to re-enable GPIO7/8/20 that the SiP package exposes externally — would get _FL_BIT undeclared compile errors.

Moving the single-line #define outside the guard fixes this without changing any existing behavior.

Fixes

Fixes #1372

Test plan

  • bash compile esp32dev --examples Blink succeeds on this branch
  • CI: confirm all ESP32 variants still build
  • Verify user can now set -DFASTLED_UNUSABLE_PIN_MASK=0x100740LL as a build flag and compile cleanly

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor
    • Reorganized platform-specific ESP32 code structure for improved maintainability while preserving all existing functionality and compatibility.

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]>
@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8f94926f-cd53-489e-8d40-02d3eeb0e091

📥 Commits

Reviewing files that changed from the base of the PR and between 1ff63ba and 09e7dcf.

📒 Files selected for processing (1)
  • src/platforms/esp/32/core/fastpin_esp32.h

📝 Walkthrough

Walkthrough

The change repositions the _FL_BIT(B) macro definition to occur before the #ifndef FASTLED_UNUSABLE_PIN_MASK guard in the ESP32 fastpin header file, ensuring the macro remains available when users override the unusable pin mask via external build flags.

Changes

Cohort / File(s) Summary
Preprocessor Guard Reordering
src/platforms/esp/32/core/fastpin_esp32.h
Relocated _FL_BIT(B) macro definition outside the FASTLED_UNUSABLE_PIN_MASK ifndef guard, enabling external mask overrides without breaking dependent macros.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A pin was locked away with care,
But GPIO7 whispered, "I'm still there!"
So we moved the macro out of the gate,
Now pins are free—hopping at a rapid rate! 🌟

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the primary change: moving the _FL_BIT macro outside the ifndef guard to make it always available, directly addressing the issue.
Linked Issues check ✅ Passed The pull request successfully addresses issue #1372 by moving the _FL_BIT macro definition outside the FASTLED_UNUSABLE_PIN_MASK guard, enabling users to override the mask via build flags without compilation errors.
Out of Scope Changes check ✅ Passed All changes are in-scope: the reordering of preprocessor directives directly solves the _FL_BIT undeclared error when FASTLED_UNUSABLE_PIN_MASK is externally defined, with no unrelated modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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: 989.20ms

Top 5 Slowest Headers

  1. FastLED.h - 749.89ms
  2. fl/fastled.h - 315.74ms
  3. fl/task/executor.h - 249.37ms
  4. crgb.h - 173.58ms
  5. fl/gfx/crgb.h - 172.35ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (749.9ms)
⚠️ Header fl/fastled.h exceeds 150ms (315.7ms)
⚠️ Header fl/task/executor.h exceeds 150ms (249.4ms)
⚠️ Header crgb.h exceeds 150ms (173.6ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (172.3ms)
⚠️ Header fl/math/ease.h exceeds 150ms (168.1ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (166.2ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (135.8ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (127.1ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (126.4ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (125.4ms)
⚠️ Header platforms/thread.h exceeds 50ms (125.3ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (125.3ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (125.2ms)
⚠️ Header fl/ui.h exceeds 50ms (102.4ms)
⚠️ Header fl/task/promise.h exceeds 50ms (101.7ms)
⚠️ Header fl/stl/json.h exceeds 50ms (65.1ms)
⚠️ Header fl/stl/function.h exceeds 50ms (60.1ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (51.1ms)
⚠️ Template instantiation time is high (51.8%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-17 23:06:32
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    2,307.46 ms
Frontend Time:             14.21 ms (0.6%)
Backend Time:              493.87 ms (21.4%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    11839.88 ms (513.1%)
Templates                   550.91 ms ( 23.9%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1364.3 ms - FastLED.h (SLOW)
   694.4 ms - fl/task/executor.h (SLOW)
   463.2 ms - fl/fastled.h (SLOW)
   345.9 ms - fl/task/scheduler.h (SLOW)
   337.1 ms - fl/stl/singleton.h (SLOW)
   336.5 ms - fl/stl/thread_local.h (SLOW)
   336.2 ms - fl/task/promise.h (SLOW)
   335.4 ms - fl/stl/thread.h (SLOW)
   335.3 ms - platforms/thread.h (SLOW)
   335.2 ms - platforms/stub/thread_stub.h (SLOW)
   335.2 ms - platforms/stub/thread_stub_stl.h (SLOW)
   294.0 ms - fl/stl/function.h (SLOW)
   255.7 ms - crgb.h (SLOW)
   254.5 ms - fl/gfx/crgb.h (SLOW)
   250.2 ms - fl/math/ease.h (SLOW)
   248.3 ms - fl/math/fixed_point.h (SLOW)
   147.8 ms - fl/stl/vector.h (SLOW)
   127.2 ms - fl/math/fixed_point/s4x12.h (SLOW)
   117.8 ms - fl/math/math.h (SLOW)
   113.3 ms - fl/stl/undef.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1364.3ms)
  ├─  694.4 ms - fl/task/executor.h
  │ ├─  345.9 ms - fl/task/scheduler.h
  │ │ ├─  337.1 ms - fl/stl/singleton.h
  │ │ │ └─  336.5 ms - fl/stl/thread_local.h
  │ │ │   └─  335.4 ms - fl/stl/thread.h
  │ │ │     └─  335.3 ms - platforms/thread.h
  │ │ │       └─  335.2 ms - platforms/stub/thread_stub.h
  │ │ │         └─  335.2 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  329.0 ms - thread
  │ │ │             ├─  173.3 ms - std_thread.h
  │ │ │             └─  135.9 ms - this_thread_sleep.h
  │ │ └─    8.0 ms - fl/task/task.h
  │ │   └─    3.1 ms - fl/trace.h
  │ │     ├─    2.0 ms - fl/stl/chrono.h
  │ │     └─    0.8 ms - fl/stl/tuple.h
  │ ├─  336.2 ms - fl/task/promise.h
  │ │ ├─  294.0 ms - fl/stl/function.h
  │ │ │ ├─  147.8 ms - fl/stl/vector.h
  │ │ │ │ ├─  117.8 ms - fl/math/math.h
  │ │ │ │ │ └─  113.3 ms - fl/stl/undef.h
  │ │ │ │ │   └─  204.2 ms - stdlib.h
  │ │ │ │ │     ├─  103.0 ms - cstdlib
  │ │ │ │ │     │ └─  204.2 ms - stdlib.h
  │ │ │ │ │     │   ├─  103.0 ms - cstdlib
  │ │ │ │ │     │   ├─   29.1 ms - types.h
  │ │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │ │     ├─   29.1 ms - types.h
  │ │ │ │ │     │ ├─   29.1 ms - types.h
  │ │ │ │ │     │ │ ├─   29.1 ms - types.h
  │ │ │ │ │     │ │ ├─    2.5 ms - endian.h
  │ │ │ │ │     │ │ ├─    2.1 ms - select.h
  │ │ │ │ │     │ │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ ├─    2.5 ms - endian.h
  │ │ │ │ │     │ ├─    2.1 ms - select.h
  │ │ │ │ │     │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │   └─    1.5 ms - thread-shared-types.h
  │ │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ │ ├─   15.4 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   10.5 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    6.7 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    5.5 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.3 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ │ ├─   80.5 ms - fl/stl/variant.h
  │ │ │ │ └─   78.8 ms - fl/stl/new.h
  │ │ │ │   └─   78.8 ms - platforms/new.h
  │ │ │ │     └─   78.7 ms - platforms/shared/new.h
  │ │ │ │       └─   64.6 ms - new
  │ │ │ │         ├─   43.6 ms - c++config.h
  │ │ │ │         │ └─   31.4 ms - os_defines.h
  │ │ │ │         └─    1.2 ms - version.h
  │ │ │ ├─   51.8 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   27.2 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   22.2 ms - fl/stl/move.h
  │ │ │ │ ├─   20.1 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   19.3 ms - platforms/atomic.h
  │ │ │ │ │   └─   19.3 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ │ ├─    5.3 ms - fl/stl/compiler_control.h
  │ │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │ │   └─    1.6 ms - fl/math/random.h
  │ │ │     └─    0.8 ms - fl/math/random8.h
  │ │ └─   37.3 ms - fl/stl/string.h
  │ │   ├─   11.0 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.8 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    7.3 ms - fl/stl/span.h
  │ │   │ └─    3.0 ms - fl/math/geometry.h
  │ │   ├─    4.4 ms - fl/stl/string_view.h
  │ │   └─    1.3 ms - fl/stl/optional.h
  │ ├─   10.2 ms - platforms/await.h
  │ │ └─    9.8 ms - platforms/coroutine_runtime.h
  │ │   └─    8.3 ms - fl/system/engine_events.h
  │ │     ├─    4.2 ms - fl/math/screenmap.h
  │ │     │ └─    3.0 ms - fl/stl/flat_map.h
  │ │     └─    2.7 ms - fl/math/xymap.h
  │ │       └─    0.7 ms - fl/math/lut.h
  │ └─    0.7 ms - fl/task/promise_result.h
  ├─  463.2 ms - fl/fastled.h
  │ ├─  255.7 ms - crgb.h
  │ │ ├─  254.5 ms - fl/gfx/crgb.h
  │ │ │ └─  250.2 ms - fl/math/ease.h
  │ │ │   └─  248.3 ms - fl/math/fixed_point.h
  │ │ │     ├─  127.2 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  110.1 ms - fl/math/sin32.h
  │ │ │     │ │ └─  107.6 ms - fl/math/simd.h
  │ │ │     │ │   └─  107.1 ms - fl/math/simd/types.h
  │ │ │     │ │     └─  106.8 ms - platforms/simd.h
  │ │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   15.2 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   15.1 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   14.9 ms - fl/math/fixed_point/s16x16.h
  │ │ │     └─   14.7 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─  110.9 ms - platforms.h
  │ │ └─  110.9 ms - platforms/stub/fastled_stub.h
  │ │   ├─   72.6 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   72.6 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   66.6 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   63.8 ms - fl/id_tracker.h
  │ │   │   │   └─   62.6 ms - fl/stl/mutex.h
  │ │   │   │     └─   62.5 ms - platforms/mutex.h
  │ │   │   │       └─   62.3 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.5 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   38.2 ms - platforms/stub/clockless_stub.h
  │ │     └─   38.2 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   14.4 ms - fl/system/log.h
  │ │       │ └─   13.9 ms - fl/stl/strstream.h
  │ │       ├─   11.7 ms - fl/channels/data.h
  │ │       │ └─    8.6 ms - fl/channels/config.h
  │ │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.1 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.4 ms - fl/chipsets/spi.h
  │ │       ├─    2.7 ms - fl/channels/manager.h
  │ │       ├─    1.8 ms - fl/stl/weak_ptr.h
  │ │       └─    1.2 ms - fl/channels/driver.h
  │ ├─   36.7 ms - colorutils.h
  │ │ └─   35.9 ms - fl/gfx/colorutils.h
  │ │   ├─    7.8 ms - fl/gfx/blur.h
  │ │   │ └─    4.1 ms - fl/gfx/canvas.h
  │ │   │   └─    2.5 ms - fl/math/alpha.h
  │ │   └─    4.0 ms - fl/gfx/fill.h
  │ ├─   20.6 ms - pixel_controller.h
  │ │ ├─   14.8 ms - pixel_iterator.h
  │ │ │ └─   14.7 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    4.2 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    4.0 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    3.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    2.5 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.5 ms - rgbw.h
  │ │   └─    2.3 ms - fl/gfx/rgbw.h
  │ └─   18.3 ms - pixeltypes.h
  │   ├─   15.2 ms - lib8tion.h
  │   │ ├─    7.7 ms - fl/math/math8.h
  │   │ │ ├─    3.9 ms - fl/math/intmap.h
  │   │ │ │ └─    3.0 ms - platforms/intmap.h
  │   │ │ ├─    2.0 ms - fl/math/scale8.h
  │   │ │ │ └─    2.0 ms - platforms/scale8.h
  │   │ │ │   └─    0.8 ms - platforms/shared/scale8.h
  │   │ │ └─    1.6 ms - platforms/math8.h
  │   │ │   └─    1.2 ms - platforms/shared/math8.h
  │   │ └─    1.6 ms - fl/math/beat.h
  │   │   └─    0.8 ms - fl/math/trig8.h
  │   │     └─    0.8 ms - platforms/trig8.h
  │   │       └─    0.7 ms - platforms/shared/trig8.h
  │   └─    2.7 ms - crgb.hpp
  ├─  106.9 ms - fl/ui.h
  │ ├─   68.0 ms - fl/stl/json.h
  │ │ └─   53.7 ms - fl/stl/json/types.h
  │ │   └─    6.3 ms - fl/stl/limits.h
  │ ├─    9.6 ms - fl/ui_impl.h
  │ │ └─    9.0 ms - platforms/ui_defs.h
  │ │   ├─    1.9 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    0.9 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.4 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.8 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ └─    4.9 ms - fl/stl/url.h
  ├─   24.5 ms - chipsets.h
  │ ├─    9.9 ms - fl/chipsets/ucs7604.h
  │ │ └─    7.5 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    5.8 ms - fl/chipsets/apa102.h
  │ ├─    1.5 ms - fl/chipsets/lpd880x.h
  │ ├─    0.8 ms - fl/chipsets/encoders/ws2816.h
  │ └─    0.7 ms - fl/chipsets/p9813.h
  └─   24.0 ms - fl/audio/audio_processor.h
    ├─    5.2 ms - fl/audio/audio_context.h
    │ └─    1.5 ms - fl/audio/fft/fft.h
    ├─    2.3 ms - fl/audio/detector/vibe.h
    ├─    1.2 ms - fl/audio/signal_conditioner.h
    └─    0.5 ms - fl/audio/noise_floor_tracker.h
fl/task/executor.h (694.4ms)
  ├─  345.9 ms - fl/task/scheduler.h
  │ ├─  337.1 ms - fl/stl/singleton.h
  │ │ └─  336.5 ms - fl/stl/thread_local.h
  │ │   └─  335.4 ms - fl/stl/thread.h
  │ │     └─  335.3 ms - platforms/thread.h
  │ │       └─  335.2 ms - platforms/stub/thread_stub.h
  │ │         └─  335.2 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  329.0 ms - thread
  │ │             ├─  173.3 ms - std_thread.h
  │ │             │ ├─   58.5 ms - tuple
  │ │             │ ├─   34.4 ms - iosfwd
  │ │             │ ├─   20.2 ms - refwrap.h
  │ │             │ ├─   13.6 ms - gthr.h
  │ │             │ └─    5.4 ms - unique_ptr.h
  │ │             └─  135.9 ms - this_thread_sleep.h
  │ │               ├─   95.4 ms - chrono.h
  │ │               └─   25.7 ms - cerrno
  │ └─    8.0 ms - fl/task/task.h
  │   └─    3.1 ms - fl/trace.h
  │     ├─    2.0 ms - fl/stl/chrono.h
  │     └─    0.8 ms - fl/stl/tuple.h
  ├─  336.2 ms - fl/task/promise.h
  │ ├─  294.0 ms - fl/stl/function.h
  │ │ ├─  147.8 ms - fl/stl/vector.h
  │ │ │ ├─  117.8 ms - fl/math/math.h
  │ │ │ │ └─  113.3 ms - fl/stl/undef.h
  │ │ │ │   └─  204.2 ms - stdlib.h
  │ │ │ │     ├─  103.0 ms - cstdlib
  │ │ │ │     │ └─  204.2 ms - stdlib.h
  │ │ │ │     │   ├─  103.0 ms - cstdlib
  │ │ │ │     │   │ └─  204.2 ms - stdlib.h
  │ │ │ │     │   ├─   29.1 ms - types.h
  │ │ │ │     │   │ ├─   29.1 ms - types.h
  │ │ │ │     │   │ ├─    2.5 ms - endian.h
  │ │ │ │     │   │ ├─    2.1 ms - select.h
  │ │ │ │     │   │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │     ├─   29.1 ms - types.h
  │ │ │ │     │ ├─   29.1 ms - types.h
  │ │ │ │     │ │ ├─   29.1 ms - types.h
  │ │ │ │     │ │ │ ├─   29.1 ms - types.h
  │ │ │ │     │ │ │ ├─    2.5 ms - endian.h
  │ │ │ │     │ │ │ ├─    2.1 ms - select.h
  │ │ │ │     │ │ │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ ├─    2.5 ms - endian.h
  │ │ │ │     │ │ ├─    2.1 ms - select.h
  │ │ │ │     │ │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │   └─    1.5 ms - thread-shared-types.h
  │ │ │ │     │ ├─    2.5 ms - endian.h
  │ │ │ │     │ ├─    2.1 ms - select.h
  │ │ │ │     │ └─    2.0 ms - pthreadtypes.h
  │ │ │ │     │   └─    1.5 ms - thread-shared-types.h
  │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ ├─   15.4 ms - fl/stl/allocator.h
  │ │ │ │ └─   10.5 ms - fl/stl/bitset.h
  │ │ │ │   └─    6.7 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    5.5 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.3 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ ├─   80.5 ms - fl/stl/variant.h
  │ │ │ └─   78.8 ms - fl/stl/new.h
  │ │ │   └─   78.8 ms - platforms/new.h
  │ │ │     └─   78.7 ms - platforms/shared/new.h
  │ │ │       └─   64.6 ms - new
  │ │ │         ├─   43.6 ms - c++config.h
  │ │ │         │ └─   31.4 ms - os_defines.h
  │ │ │         │   └─   27.1 ms - features.h
  │ │ │         └─    1.2 ms - version.h
  │ │ ├─   51.8 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   27.2 ms - fl/stl/type_traits.h
  │ │ │ │ └─   22.2 ms - fl/stl/move.h
  │ │ │ ├─   20.1 ms - fl/stl/atomic.h
  │ │ │ │ └─   19.3 ms - platforms/atomic.h
  │ │ │ │   └─   19.3 ms - platforms/shared/atomic.h
  │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ ├─    5.3 ms - fl/stl/compiler_control.h
  │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │   └─    1.6 ms - fl/math/random.h
  │ │     └─    0.8 ms - fl/math/random8.h
  │ └─   37.3 ms - fl/stl/string.h
  │   ├─   11.0 ms - fl/stl/basic_string.h
  │   │ ├─    0.8 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    7.3 ms - fl/stl/span.h
  │   │ └─    3.0 ms - fl/math/geometry.h
  │   ├─    4.4 ms - fl/stl/string_view.h
  │   └─    1.3 ms - fl/stl/optional.h
  ├─   10.2 ms - platforms/await.h
  │ └─    9.8 ms - platforms/coroutine_runtime.h
  │   └─    8.3 ms - fl/system/engine_events.h
  │     ├─    4.2 ms - fl/math/screenmap.h
  │     │ └─    3.0 ms - fl/stl/flat_map.h
  │     └─    2.7 ms - fl/math/xymap.h
  │       └─    0.7 ms - fl/math/lut.h
  └─    0.7 ms - fl/task/promise_result.h
fl/fastled.h (463.2ms)
  ├─  255.7 ms - crgb.h
  │ ├─  254.5 ms - fl/gfx/crgb.h
  │ │ └─  250.2 ms - fl/math/ease.h
  │ │   └─  248.3 ms - fl/math/fixed_point.h
  │ │     ├─  127.2 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  110.1 ms - fl/math/sin32.h
  │ │     │ │ └─  107.6 ms - fl/math/simd.h
  │ │     │ │   └─  107.1 ms - fl/math/simd/types.h
  │ │     │ │     └─  106.8 ms - platforms/simd.h
  │ │     │ │       └─  106.7 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   15.2 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   15.1 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   14.9 ms - fl/math/fixed_point/s16x16.h
  │ │     └─   14.7 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─  110.9 ms - platforms.h
  │ └─  110.9 ms - platforms/stub/fastled_stub.h
  │   ├─   72.6 ms - platforms/stub/fastspi_stub.h
  │   │ └─   72.6 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   66.6 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   63.8 ms - fl/id_tracker.h
  │   │   │   └─   62.6 ms - fl/stl/mutex.h
  │   │   │     └─   62.5 ms - platforms/mutex.h
  │   │   │       └─   62.3 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   62.3 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.5 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   38.2 ms - platforms/stub/clockless_stub.h
  │     └─   38.2 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   14.4 ms - fl/system/log.h
  │       │ └─   13.9 ms - fl/stl/strstream.h
  │       ├─   11.7 ms - fl/channels/data.h
  │       │ └─    8.6 ms - fl/channels/config.h
  │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.1 ms - fl/chipsets/led_timing.h
  │       │   └─    1.4 ms - fl/chipsets/spi.h
  │       ├─    2.7 ms - fl/channels/manager.h
  │       ├─    1.8 ms - fl/stl/weak_ptr.h
  │       └─    1.2 ms - fl/channels/driver.h
  ├─   36.7 ms - colorutils.h
  │ └─   35.9 ms - fl/gfx/colorutils.h
  │   ├─    7.8 ms - fl/gfx/blur.h
  │   │ └─    4.1 ms - fl/gfx/canvas.h
  │   │   └─    2.5 ms - fl/math/alpha.h
  │   └─    4.0 ms - fl/gfx/fill.h
  ├─   20.6 ms - pixel_controller.h
  │ ├─   14.8 ms - pixel_iterator.h
  │ │ └─   14.7 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    4.2 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    4.0 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    3.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    2.5 ms - fl/gfx/gamma_lut.h
  │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.5 ms - rgbw.h
  │   └─    2.3 ms - fl/gfx/rgbw.h
  └─   18.3 ms - pixeltypes.h
    ├─   15.2 ms - lib8tion.h
    │ ├─    7.7 ms - fl/math/math8.h
    │ │ ├─    3.9 ms - fl/math/intmap.h
    │ │ │ └─    3.0 ms - platforms/intmap.h
    │ │ ├─    2.0 ms - fl/math/scale8.h
    │ │ │ └─    2.0 ms - platforms/scale8.h
    │ │ │   └─    0.8 ms - platforms/shared/scale8.h
    │ │ └─    1.6 ms - platforms/math8.h
    │ │   └─    1.2 ms - platforms/shared/math8.h
    │ └─    1.6 ms - fl/math/beat.h
    │   └─    0.8 ms - fl/math/trig8.h
    │     └─    0.8 ms - platforms/trig8.h
    │       └─    0.7 ms - platforms/shared/trig8.h
    └─    2.7 ms - crgb.hpp
fl/ui.h (106.9ms)
  ├─   68.0 ms - fl/stl/json.h
  │ └─   53.7 ms - fl/stl/json/types.h
  │   └─    6.3 ms - fl/stl/limits.h
  ├─    9.6 ms - fl/ui_impl.h
  │ └─    9.0 ms - platforms/ui_defs.h
  │   ├─    1.9 ms - platforms/shared/ui/json/audio.h
  │   │ └─    0.9 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.4 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.8 ms - platforms/shared/ui/json/help.h
  │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  └─    4.9 ms - fl/stl/url.h
chipsets.h (24.5ms)
  ├─    9.9 ms - fl/chipsets/ucs7604.h
  │ └─    7.5 ms - fl/chipsets/encoders/ucs7604.h
  ├─    5.8 ms - fl/chipsets/apa102.h
  ├─    1.5 ms - fl/chipsets/lpd880x.h
  ├─    0.8 ms - fl/chipsets/encoders/ws2816.h
  └─    0.7 ms - fl/chipsets/p9813.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1364.3 ms - Source: FastLED.h
  2.  1364.3 ms - Total Source: 
  3.   694.4 ms - Source: fl/task/executor.h
  4.   581.4 ms - Total ParseClass: 
  5.   463.2 ms - Source: fl/fastled.h
  6.   345.9 ms - Source: fl/task/scheduler.h
  7.   337.1 ms - Source: fl/stl/singleton.h
  8.   336.5 ms - Source: fl/stl/thread_local.h
  9.   336.2 ms - Source: fl/task/promise.h
 10.   335.4 ms - Source: fl/stl/thread.h
 11.   335.3 ms - Source: platforms/thread.h
 12.   335.2 ms - Source: platforms/stub/thread_stub.h
 13.   335.2 ms - Source: platforms/stub/thread_stub_stl.h
 14.   329.0 ms - Source: thread
 15.   294.0 ms - Source: fl/stl/function.h
 16.   255.7 ms - Source: crgb.h
 17.   254.5 ms - Source: fl/gfx/crgb.h
 18.   250.2 ms - Source: fl/math/ease.h
 19.   248.3 ms - Source: fl/math/fixed_point.h
 20.   199.7 ms - Total InstantiateFunction: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1364.3ms)
    - fl/task/executor.h (694.4ms)
    - fl/fastled.h (463.2ms)
    - fl/task/scheduler.h (345.9ms)
    - fl/stl/singleton.h (337.1ms)
    - fl/stl/thread_local.h (336.5ms)
    - fl/task/promise.h (336.2ms)
    - fl/stl/thread.h (335.4ms)
    - platforms/thread.h (335.3ms)
    - platforms/stub/thread_stub.h (335.2ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1364.3ms)
2. Consider optimizing fl/task/executor.h (694.4ms)
3. Consider optimizing fl/fastled.h (463.2ms)

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

@zackees
zackees merged commit 055a9b4 into master Apr 17, 2026
52 of 69 checks passed
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.

"Invalid pin specified" for GPIO7 on ESP32-PICO-V3-02

1 participant