Skip to content

Add CRGB16 palette lookup API - #2373

Merged
zackees merged 1 commit into
masterfrom
issue-2372-colorfrompalette-hd
Apr 22, 2026
Merged

zackees merged 1 commit into
masterfrom
issue-2372-colorfrompalette-hd

Conversation

@zackees

@zackees zackees commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Addresses the first PR-sized slice of #2372 by adding ColorFromPaletteHD(...), a high-precision palette lookup path that returns fl::CRGB16.

  • Adds ColorFromPaletteHD overloads for CRGBPalette16, CRGBPalette32, CRGBPalette256, TProgmemRGBPalette16, and TProgmemRGBPalette32
  • Preserves interpolation and brightness scaling in u8x8 / 8.8 fixed-point channel precision
  • Keeps existing ColorFromPalette and ColorFromPaletteExtended behavior unchanged
  • Adds focused coverage for sub-8-bit interpolation, low-brightness scaling, wrap/no-wrap behavior, and existing RGB palette families

Fixes #2372 for the initial lookup API slice.

Test

python test.py colorutils_palette --no-interactive

diff --check also passes.

Summary by CodeRabbit

  • New Features
    • Added high‑definition palette lookup that returns higher‑precision colors (CRGB16), supports multiple palette formats, configurable brightness scaling, and linear/NOBLEND blending modes. Includes convenience overloads for standard 8‑bit brightness.
  • Chores
    • Added a legacy re‑export alias to preserve compatibility with existing palette APIs.
  • Tests
    • Added tests verifying HD precision, brightness/scaling behavior, blending variants, and compatibility across palette families.

@coderabbitai

coderabbitai Bot commented Apr 22, 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: be9cbcf3-3095-4e82-ae5a-9f6f82825479

📥 Commits

Reviewing files that changed from the base of the PR and between d189e06 and dfbc608.

📒 Files selected for processing (4)
  • src/colorutils.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • tests/fl/gfx/colorutils_palette.cpp

📝 Walkthrough

Walkthrough

Added a high-precision palette lookup API, ColorFromPaletteHD, returning CRGB16; implemented HD palette readers, 16-bit per-channel interpolation, and HD brightness scaling; added overloads for existing palette families (including progmem variants) and tests validating sub-8-bit precision and wrap behavior.

Changes

Cohort / File(s) Summary
Public API Declarations
src/fl/gfx/colorutils.h
Added #include "fl/gfx/crgb16.h", declarations for CRGB16 ColorFromPaletteHD(...) (canonical fl::u8x8 brightness) and inline fl::u8-adapter overloads for CRGBPalette16/32/256 and progmem palette types.
Core Implementation
src/fl/gfx/colorutils.cpp.hpp
Implemented ColorFromPaletteHDImpl<PaletteBits, Reader> plus RuntimeRGBPaletteReader/ProgmemRGBPaletteReader, 16-bit channel promotion/interpolation, fractional segment math, wrap/no-wrap handling, and HD brightness scaling; added public ColorFromPaletteHD overloads returning CRGB16.
Legacy Export
src/colorutils.h
Added legacy re-export alias using fl::ColorFromPaletteHD;.
Tests
tests/fl/gfx/colorutils_palette.cpp
Added kProgmemRgb16 progmem fixture, downconvert(const CRGB16&) helper, and tests verifying CRGB16 precision preservation, low-brightness fractional behavior, wrap vs nowrap differences, and coverage across palette families.

Sequence Diagram(s)

(No sequence diagrams generated — changes are internal API/implementation additions without a multi-component runtime interaction that benefits from a sequence diagram.)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐇 I nibble at pixels, soft and bright,
Sixteen-bit whiskers twitch in midnight light,
I blend the hues with careful hop and hum,
No banding left — smooth currents drum,
A carrot cheer for palettes new! 🥕

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 22.58% 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 PR title 'Add CRGB16 palette lookup API' accurately and concisely describes the main change—introducing a new ColorFromPaletteHD function that returns CRGB16 for high-precision palette lookups.
Linked Issues check ✅ Passed All coding objectives from issue #2372 are met: ColorFromPaletteHD API is added returning CRGB16, overloads cover all specified palette types, 16-bit interpolation preserves sub-8-bit precision, brightness scaling uses u8x8, existing APIs remain unchanged, and tests validate precision preservation across interpolation and brightness scaling.
Out of Scope Changes check ✅ Passed All changes are directly aligned with issue #2372 objectives: new ColorFromPaletteHD API, supporting overloads, internal HD helpers, tests for sub-8-bit precision and wrap behavior, and the re-export in colorutils.h. No unrelated modifications present.

✏️ 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 issue-2372-colorfrompalette-hd

Warning

Review ran into problems

🔥 Problems

Timed out fetching pipeline failures after 30000ms


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: 986.54ms

Top 5 Slowest Headers

  1. FastLED.h - 747.21ms
  2. fl/fastled.h - 319.38ms
  3. fl/task/executor.h - 239.79ms
  4. crgb.h - 173.47ms
  5. fl/gfx/crgb.h - 172.26ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (747.2ms)
⚠️ Header fl/fastled.h exceeds 150ms (319.4ms)
⚠️ Header fl/task/executor.h exceeds 150ms (239.8ms)
⚠️ Header crgb.h exceeds 150ms (173.5ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (172.3ms)
⚠️ Header fl/math/ease.h exceeds 150ms (168.0ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (166.1ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (125.8ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (117.2ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (116.5ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (115.5ms)
⚠️ Header platforms/thread.h exceeds 50ms (115.4ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (115.4ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (115.3ms)
⚠️ Header fl/ui.h exceeds 50ms (106.1ms)
⚠️ Header fl/task/promise.h exceeds 50ms (101.9ms)
⚠️ Header fl/stl/json.h exceeds 50ms (64.8ms)
⚠️ Header fl/stl/function.h exceeds 50ms (60.2ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (50.8ms)
⚠️ Template instantiation time is high (50.8%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    3,732.40 ms
Frontend Time:             49.59 ms (1.3%)
Backend Time:              934.53 ms (25.0%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    14014.94 ms (375.5%)
Templates                   579.97 ms ( 15.5%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1967.3 ms - FastLED.h (SLOW)
  1090.6 ms - fl/task/executor.h (SLOW)
   727.0 ms - fl/task/promise.h (SLOW)
   674.9 ms - fl/stl/function.h (SLOW)
   396.7 ms - fl/fastled.h (SLOW)
   393.8 ms - fl/stl/shared_ptr.h (SLOW)
   361.2 ms - fl/stl/type_traits.h (SLOW)
   351.5 ms - fl/task/scheduler.h (SLOW)
   342.7 ms - fl/stl/singleton.h (SLOW)
   342.1 ms - fl/stl/thread_local.h (SLOW)
   341.0 ms - fl/stl/thread.h (SLOW)
   340.9 ms - platforms/thread.h (SLOW)
   340.8 ms - platforms/stub/thread_stub.h (SLOW)
   340.8 ms - platforms/stub/thread_stub_stl.h (SLOW)
   273.2 ms - fl/stl/stdint.h (SLOW)
   214.6 ms - fl/stl/move.h (SLOW)
   202.3 ms - crgb.h (SLOW)
   201.1 ms - fl/gfx/crgb.h (SLOW)
   196.9 ms - fl/math/ease.h (SLOW)
   195.1 ms - fl/math/fixed_point.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1967.3ms)
  ├─ 1090.6 ms - fl/task/executor.h
  │ ├─  727.0 ms - fl/task/promise.h
  │ │ ├─  674.9 ms - fl/stl/function.h
  │ │ │ ├─  393.8 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  361.2 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─  214.6 ms - fl/stl/move.h
  │ │ │ │ ├─    9.5 ms - fl/stl/align.h
  │ │ │ │ ├─    5.7 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    4.9 ms - platforms/atomic.h
  │ │ │ │ │   └─    4.9 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.9 ms - fl/stl/bit_cast.h
  │ │ │ ├─  169.9 ms - fl/stl/vector.h
  │ │ │ │ ├─   76.2 ms - fl/math/math.h
  │ │ │ │ │ └─   66.1 ms - fl/stl/undef.h
  │ │ │ │ │   └─   85.7 ms - stdlib.h
  │ │ │ │ │     ├─   43.1 ms - cstdlib
  │ │ │ │ │     │ └─   85.7 ms - stdlib.h
  │ │ │ │ │     │   ├─   43.1 ms - cstdlib
  │ │ │ │ │     │   └─    7.9 ms - types.h
  │ │ │ │ │     └─    7.9 ms - types.h
  │ │ │ │ │       ├─    7.9 ms - types.h
  │ │ │ │ │       │ ├─    7.9 ms - types.h
  │ │ │ │ │       │ ├─    1.6 ms - pthreadtypes.h
  │ │ │ │ │       │ ├─    1.5 ms - endian.h
  │ │ │ │ │       │ └─    1.3 ms - select.h
  │ │ │ │ │       ├─    1.6 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │ │       ├─    1.5 ms - endian.h
  │ │ │ │ │       └─    1.3 ms - select.h
  │ │ │ │ ├─   58.9 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   53.9 ms - fl/stl/bitset.h
  │ │ │ │ │   └─   50.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.9 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─   18.8 ms - fl/stl/basic_vector.h
  │ │ │ │ ├─    4.9 ms - fl/stl/initializer_list.h
  │ │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ │ ├─   85.1 ms - fl/stl/variant.h
  │ │ │ │ └─   83.2 ms - fl/stl/new.h
  │ │ │ │   └─   83.2 ms - platforms/new.h
  │ │ │ │     └─   83.1 ms - platforms/shared/new.h
  │ │ │ │       └─   53.8 ms - new
  │ │ │ │         ├─   14.0 ms - c++config.h
  │ │ │ │         │ └─    3.6 ms - os_defines.h
  │ │ │ │         └─    0.5 ms - version.h
  │ │ │ ├─   13.0 ms - fl/stl/compiler_control.h
  │ │ │ └─    5.4 ms - fl/stl/pair.h
  │ │ └─   47.3 ms - fl/stl/string.h
  │ │   ├─   17.4 ms - fl/stl/span.h
  │ │   │ └─    8.5 ms - fl/math/geometry.h
  │ │   ├─   11.0 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.9 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    4.3 ms - fl/stl/string_view.h
  │ │   └─    1.5 ms - fl/stl/optional.h
  │ ├─  351.5 ms - fl/task/scheduler.h
  │ │ ├─  342.7 ms - fl/stl/singleton.h
  │ │ │ └─  342.1 ms - fl/stl/thread_local.h
  │ │ │   └─  341.0 ms - fl/stl/thread.h
  │ │ │     └─  340.9 ms - platforms/thread.h
  │ │ │       └─  340.8 ms - platforms/stub/thread_stub.h
  │ │ │         └─  340.8 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  335.8 ms - thread
  │ │ │             ├─  212.0 ms - std_thread.h
  │ │ │             └─  108.6 ms - this_thread_sleep.h
  │ │ └─    7.9 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
  │ ├─   10.2 ms - platforms/await.h
  │ │ └─    9.8 ms - platforms/coroutine_runtime.h
  │ │   └─    8.3 ms - fl/system/engine_events.h
  │ │     ├─    4.1 ms - fl/math/screenmap.h
  │ │     │ └─    3.0 ms - fl/stl/flat_map.h
  │ │     └─    2.8 ms - fl/math/xymap.h
  │ │       └─    0.7 ms - fl/math/lut.h
  │ └─    0.7 ms - fl/task/promise_result.h
  ├─  396.7 ms - fl/fastled.h
  │ ├─  202.3 ms - crgb.h
  │ │ ├─  201.1 ms - fl/gfx/crgb.h
  │ │ │ └─  196.9 ms - fl/math/ease.h
  │ │ │   └─  195.1 ms - fl/math/fixed_point.h
  │ │ │     ├─   75.7 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   58.8 ms - fl/math/sin32.h
  │ │ │     │ │ └─   56.3 ms - fl/math/simd.h
  │ │ │     │ │   └─   55.8 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   55.5 ms - platforms/simd.h
  │ │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.8 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   14.8 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.5 ms - fl/math/fixed_point/s16x16.h
  │ │ │     └─   14.4 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─   78.5 ms - platforms.h
  │ │ └─   78.4 ms - platforms/stub/fastled_stub.h
  │ │   ├─   45.8 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   45.8 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   40.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   38.1 ms - fl/id_tracker.h
  │ │   │   │   └─   37.2 ms - fl/stl/mutex.h
  │ │   │   │     └─   37.1 ms - platforms/mutex.h
  │ │   │   │       └─   37.0 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.3 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   32.5 ms - platforms/stub/clockless_stub.h
  │ │     └─   32.5 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   11.6 ms - fl/channels/data.h
  │ │       │ └─    8.5 ms - fl/channels/config.h
  │ │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.4 ms - fl/chipsets/spi.h
  │ │       ├─   11.1 ms - fl/system/log.h
  │ │       │ └─   10.7 ms - fl/stl/strstream.h
  │ │       ├─    2.3 ms - fl/channels/manager.h
  │ │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │ │       └─    1.0 ms - fl/channels/driver.h
  │ ├─   36.4 ms - colorutils.h
  │ │ └─   36.0 ms - fl/gfx/colorutils.h
  │ │   ├─    7.6 ms - fl/gfx/blur.h
  │ │   │ └─    4.1 ms - fl/gfx/canvas.h
  │ │   │   └─    2.5 ms - fl/math/alpha.h
  │ │   ├─    2.7 ms - fl/gfx/fill.h
  │ │   └─    1.6 ms - fl/gfx/crgb16.h
  │ ├─   35.3 ms - pixeltypes.h
  │ │ ├─   32.2 ms - lib8tion.h
  │ │ │ ├─   24.6 ms - fl/math/math8.h
  │ │ │ │ ├─   19.0 ms - fl/math/scale8.h
  │ │ │ │ │ └─   19.0 ms - platforms/scale8.h
  │ │ │ │ │   └─   17.7 ms - platforms/shared/scale8.h
  │ │ │ │ ├─    4.0 ms - fl/math/intmap.h
  │ │ │ │ │ └─    3.1 ms - platforms/intmap.h
  │ │ │ │ └─    1.5 ms - platforms/math8.h
  │ │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ │ └─    1.6 ms - fl/math/beat.h
  │ │ │   └─    0.9 ms - fl/math/trig8.h
  │ │ │     └─    0.9 ms - platforms/trig8.h
  │ │ │       └─    0.8 ms - platforms/shared/trig8.h
  │ │ └─    2.7 ms - crgb.hpp
  │ └─   20.4 ms - pixel_controller.h
  │   ├─   14.5 ms - pixel_iterator.h
  │   │ └─   14.4 ms - fl/chipsets/encoders/pixel_iterator.h
  │   │   ├─    4.0 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.4 ms - rgbw.h
  │     └─    2.2 ms - fl/gfx/rgbw.h
  ├─  273.2 ms - fl/stl/stdint.h
  │ └─  128.1 ms - platforms/int.h
  │   ├─  127.5 ms - platforms/shared/int.h
  │   │ └─  127.4 ms - platforms/shared/int_linux.h
  │   └─    0.6 ms - platforms/arm/is_arm.h
  ├─  119.4 ms - fl/ui.h
  │ ├─   64.8 ms - fl/stl/json.h
  │ │ └─   50.7 ms - fl/stl/json/types.h
  │ │   └─    6.3 ms - fl/stl/limits.h
  │ ├─    9.7 ms - fl/ui_impl.h
  │ │ └─    9.1 ms - platforms/ui_defs.h
  │ │   ├─    2.1 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/description.h
  │ └─    8.4 ms - fl/asset.h
  │   └─    6.9 ms - fl/stl/url.h
  └─   25.1 ms - chipsets.h
    ├─   10.1 ms - fl/chipsets/ucs7604.h
    │ └─    7.6 ms - fl/chipsets/encoders/ucs7604.h
    ├─    5.9 ms - fl/chipsets/apa102.h
    ├─    1.7 ms - fl/chipsets/lpd880x.h
    ├─    0.8 ms - fl/chipsets/p9813.h
    └─    0.7 ms - fl/chipsets/encoders/ws2816.h
fl/task/executor.h (1090.6ms)
  ├─  727.0 ms - fl/task/promise.h
  │ ├─  674.9 ms - fl/stl/function.h
  │ │ ├─  393.8 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  361.2 ms - fl/stl/type_traits.h
  │ │ │ │ └─  214.6 ms - fl/stl/move.h
  │ │ │ ├─    9.5 ms - fl/stl/align.h
  │ │ │ ├─    5.7 ms - fl/stl/atomic.h
  │ │ │ │ └─    4.9 ms - platforms/atomic.h
  │ │ │ │   └─    4.9 ms - platforms/shared/atomic.h
  │ │ │ └─    0.9 ms - fl/stl/bit_cast.h
  │ │ ├─  169.9 ms - fl/stl/vector.h
  │ │ │ ├─   76.2 ms - fl/math/math.h
  │ │ │ │ └─   66.1 ms - fl/stl/undef.h
  │ │ │ │   └─   85.7 ms - stdlib.h
  │ │ │ │     ├─   43.1 ms - cstdlib
  │ │ │ │     │ └─   85.7 ms - stdlib.h
  │ │ │ │     │   ├─   43.1 ms - cstdlib
  │ │ │ │     │   │ └─   85.7 ms - stdlib.h
  │ │ │ │     │   └─    7.9 ms - types.h
  │ │ │ │     │     ├─    7.9 ms - types.h
  │ │ │ │     │     ├─    1.6 ms - pthreadtypes.h
  │ │ │ │     │     ├─    1.5 ms - endian.h
  │ │ │ │     │     └─    1.3 ms - select.h
  │ │ │ │     └─    7.9 ms - types.h
  │ │ │ │       ├─    7.9 ms - types.h
  │ │ │ │       │ ├─    7.9 ms - types.h
  │ │ │ │       │ │ ├─    7.9 ms - types.h
  │ │ │ │       │ │ ├─    1.6 ms - pthreadtypes.h
  │ │ │ │       │ │ ├─    1.5 ms - endian.h
  │ │ │ │       │ │ └─    1.3 ms - select.h
  │ │ │ │       │ ├─    1.6 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │       │ ├─    1.5 ms - endian.h
  │ │ │ │       │ └─    1.3 ms - select.h
  │ │ │ │       ├─    1.6 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │       ├─    1.5 ms - endian.h
  │ │ │ │       └─    1.3 ms - select.h
  │ │ │ ├─   58.9 ms - fl/stl/allocator.h
  │ │ │ │ └─   53.9 ms - fl/stl/bitset.h
  │ │ │ │   └─   50.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.9 ms - fl/stl/unique_ptr.h
  │ │ │ ├─   18.8 ms - fl/stl/basic_vector.h
  │ │ │ ├─    4.9 ms - fl/stl/initializer_list.h
  │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ ├─   85.1 ms - fl/stl/variant.h
  │ │ │ └─   83.2 ms - fl/stl/new.h
  │ │ │   └─   83.2 ms - platforms/new.h
  │ │ │     └─   83.1 ms - platforms/shared/new.h
  │ │ │       └─   53.8 ms - new
  │ │ │         ├─   14.0 ms - c++config.h
  │ │ │         │ └─    3.6 ms - os_defines.h
  │ │ │         │   └─    3.2 ms - features.h
  │ │ │         └─    0.5 ms - version.h
  │ │ ├─   13.0 ms - fl/stl/compiler_control.h
  │ │ └─    5.4 ms - fl/stl/pair.h
  │ └─   47.3 ms - fl/stl/string.h
  │   ├─   17.4 ms - fl/stl/span.h
  │   │ └─    8.5 ms - fl/math/geometry.h
  │   ├─   11.0 ms - fl/stl/basic_string.h
  │   │ ├─    0.9 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    4.3 ms - fl/stl/string_view.h
  │   └─    1.5 ms - fl/stl/optional.h
  ├─  351.5 ms - fl/task/scheduler.h
  │ ├─  342.7 ms - fl/stl/singleton.h
  │ │ └─  342.1 ms - fl/stl/thread_local.h
  │ │   └─  341.0 ms - fl/stl/thread.h
  │ │     └─  340.9 ms - platforms/thread.h
  │ │       └─  340.8 ms - platforms/stub/thread_stub.h
  │ │         └─  340.8 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  335.8 ms - thread
  │ │             ├─  212.0 ms - std_thread.h
  │ │             │ ├─   75.1 ms - tuple
  │ │             │ ├─   24.6 ms - refwrap.h
  │ │             │ ├─   21.9 ms - iosfwd
  │ │             │ ├─   14.3 ms - unique_ptr.h
  │ │             │ └─   12.6 ms - gthr.h
  │ │             └─  108.6 ms - this_thread_sleep.h
  │ │               ├─   93.4 ms - chrono.h
  │ │               └─    2.7 ms - cerrno
  │ └─    7.9 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
  ├─   10.2 ms - platforms/await.h
  │ └─    9.8 ms - platforms/coroutine_runtime.h
  │   └─    8.3 ms - fl/system/engine_events.h
  │     ├─    4.1 ms - fl/math/screenmap.h
  │     │ └─    3.0 ms - fl/stl/flat_map.h
  │     └─    2.8 ms - fl/math/xymap.h
  │       └─    0.7 ms - fl/math/lut.h
  └─    0.7 ms - fl/task/promise_result.h
fl/fastled.h (396.7ms)
  ├─  202.3 ms - crgb.h
  │ ├─  201.1 ms - fl/gfx/crgb.h
  │ │ └─  196.9 ms - fl/math/ease.h
  │ │   └─  195.1 ms - fl/math/fixed_point.h
  │ │     ├─   75.7 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   58.8 ms - fl/math/sin32.h
  │ │     │ │ └─   56.3 ms - fl/math/simd.h
  │ │     │ │   └─   55.8 ms - fl/math/simd/types.h
  │ │     │ │     └─   55.5 ms - platforms/simd.h
  │ │     │ │       └─   55.4 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   14.8 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   14.8 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.5 ms - fl/math/fixed_point/s16x16.h
  │ │     └─   14.4 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─   78.5 ms - platforms.h
  │ └─   78.4 ms - platforms/stub/fastled_stub.h
  │   ├─   45.8 ms - platforms/stub/fastspi_stub.h
  │   │ └─   45.8 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   40.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   38.1 ms - fl/id_tracker.h
  │   │   │   └─   37.2 ms - fl/stl/mutex.h
  │   │   │     └─   37.1 ms - platforms/mutex.h
  │   │   │       └─   37.0 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   36.9 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.3 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   32.5 ms - platforms/stub/clockless_stub.h
  │     └─   32.5 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   11.6 ms - fl/channels/data.h
  │       │ └─    8.5 ms - fl/channels/config.h
  │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │       │   └─    1.4 ms - fl/chipsets/spi.h
  │       ├─   11.1 ms - fl/system/log.h
  │       │ └─   10.7 ms - fl/stl/strstream.h
  │       ├─    2.3 ms - fl/channels/manager.h
  │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │       └─    1.0 ms - fl/channels/driver.h
  ├─   36.4 ms - colorutils.h
  │ └─   36.0 ms - fl/gfx/colorutils.h
  │   ├─    7.6 ms - fl/gfx/blur.h
  │   │ └─    4.1 ms - fl/gfx/canvas.h
  │   │   └─    2.5 ms - fl/math/alpha.h
  │   ├─    2.7 ms - fl/gfx/fill.h
  │   └─    1.6 ms - fl/gfx/crgb16.h
  ├─   35.3 ms - pixeltypes.h
  │ ├─   32.2 ms - lib8tion.h
  │ │ ├─   24.6 ms - fl/math/math8.h
  │ │ │ ├─   19.0 ms - fl/math/scale8.h
  │ │ │ │ └─   19.0 ms - platforms/scale8.h
  │ │ │ │   └─   17.7 ms - platforms/shared/scale8.h
  │ │ │ ├─    4.0 ms - fl/math/intmap.h
  │ │ │ │ └─    3.1 ms - platforms/intmap.h
  │ │ │ └─    1.5 ms - platforms/math8.h
  │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ └─    1.6 ms - fl/math/beat.h
  │ │   └─    0.9 ms - fl/math/trig8.h
  │ │     └─    0.9 ms - platforms/trig8.h
  │ │       └─    0.8 ms - platforms/shared/trig8.h
  │ └─    2.7 ms - crgb.hpp
  └─   20.4 ms - pixel_controller.h
    ├─   14.5 ms - pixel_iterator.h
    │ └─   14.4 ms - fl/chipsets/encoders/pixel_iterator.h
    │   ├─    4.0 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.4 ms - rgbw.h
      └─    2.2 ms - fl/gfx/rgbw.h
fl/stl/stdint.h (273.2ms)
  └─  128.1 ms - platforms/int.h
    ├─  127.5 ms - platforms/shared/int.h
    │ └─  127.4 ms - platforms/shared/int_linux.h
    └─    0.6 ms - platforms/arm/is_arm.h
fl/ui.h (119.4ms)
  ├─   64.8 ms - fl/stl/json.h
  │ └─   50.7 ms - fl/stl/json/types.h
  │   └─    6.3 ms - fl/stl/limits.h
  ├─    9.7 ms - fl/ui_impl.h
  │ └─    9.1 ms - platforms/ui_defs.h
  │   ├─    2.1 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │   ├─    0.8 ms - platforms/shared/ui/json/number_field.h
  │   └─    0.8 ms - platforms/shared/ui/json/description.h
  └─    8.4 ms - fl/asset.h
    └─    6.9 ms - fl/stl/url.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1967.3 ms - Source: FastLED.h
  2.  1967.3 ms - Total Source: 
  3.  1090.6 ms - Source: fl/task/executor.h
  4.   727.0 ms - Source: fl/task/promise.h
  5.   709.1 ms - Total ParseClass: 
  6.   674.9 ms - Source: fl/stl/function.h
  7.   396.7 ms - Source: fl/fastled.h
  8.   393.8 ms - Source: fl/stl/shared_ptr.h
  9.   361.2 ms - Source: fl/stl/type_traits.h
 10.   351.5 ms - Source: fl/task/scheduler.h
 11.   342.7 ms - Source: fl/stl/singleton.h
 12.   342.1 ms - Source: fl/stl/thread_local.h
 13.   341.0 ms - Source: fl/stl/thread.h
 14.   340.9 ms - Source: platforms/thread.h
 15.   340.8 ms - Source: platforms/stub/thread_stub.h
 16.   340.8 ms - Source: platforms/stub/thread_stub_stl.h
 17.   335.8 ms - Source: thread
 18.   273.2 ms - Source: fl/stl/stdint.h
 19.   214.6 ms - Source: fl/stl/move.h
 20.   212.0 ms - Source: std_thread.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1967.3ms)
    - fl/task/executor.h (1090.6ms)
    - fl/task/promise.h (727.0ms)
    - fl/stl/function.h (674.9ms)
    - fl/fastled.h (396.7ms)
    - fl/stl/shared_ptr.h (393.8ms)
    - fl/stl/type_traits.h (361.2ms)
    - fl/task/scheduler.h (351.5ms)
    - fl/stl/singleton.h (342.7ms)
    - fl/stl/thread_local.h (342.1ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1967.3ms)
2. Consider optimizing fl/task/executor.h (1090.6ms)
3. Consider optimizing fl/task/promise.h (727.0ms)

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
src/fl/gfx/colorutils.h (1)

1380-1472: Consider centralizing the fl::u8 brightness conversion.

The brightness == 255 ? 256 : brightness conversion is repeated across all inline overloads. A small helper would keep the public overload semantics in one place if this mapping changes later.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/gfx/colorutils.h` around lines 1380 - 1472, Create a small centralized
helper (e.g., a static inline function brightness_to_u8x8 or brightness_raw)
that takes fl::u8 and returns the proper fl::u8x8 (or the raw fl::u16 then call
fl::u8x8::from_raw inside the helper) implementing the existing mapping
(brightness == 255 ? 256 : brightness); then replace the repeated expression in
all inline overloads of ColorFromPaletteHD (the overloads taking CRGBPalette16,
CRGBPalette32, TProgmemRGBPalette16, TProgmemRGBPalette32, CRGBPalette256 and
any similar inline wrappers) to call that helper and pass its result to
ColorFromPaletteHD, keeping signatures and behavior identical.
tests/fl/gfx/colorutils_palette.cpp (1)

226-251: Strengthen the family-coverage assertions.

The current > 0 checks prove the overloads are callable, but they would still pass if inactive channels became non-zero or progmem channel order regressed. Prefer exact/channel-specific assertions for expected raw values, and consider one fl::u8 brightness overload assertion to cover the inline conversion path.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/fl/gfx/colorutils_palette.cpp` around lines 226 - 251, Replace the
loose >0 checks with exact channel-specific assertions: for CRGBPalette16/32/256
use ColorFromPaletteHD(pal16,1,fl::u8x8(1),LINEARBLEND).r.raw() == 255 (and
analogous equality == 255 for .g on pal32 and .b on pal256) to verify the
correct channel and value; do the same for the progmem palettes kProgmemRgb16
and kProgmemRgb32 using the channel you expect to be 255; additionally add one
assertion that calls the brightness overload (ColorFromPaletteHD with a fl::u8
brightness argument) to cover the inline conversion path and assert the expected
channel raw value.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/colorutils.h`:
- Line 41: The header re-exports ColorFromPaletteHD which returns CRGB16 but
CRGB16 itself isn't re-exported; add a using declaration for fl::CRGB16 (e.g.,
"using fl::CRGB16;") alongside the other palette type aliases in
src/colorutils.h so callers using the legacy API surface can access CRGB16
directly; ensure the new using is placed near the existing palette aliases where
ColorFromPaletteHD is exposed.

---

Nitpick comments:
In `@src/fl/gfx/colorutils.h`:
- Around line 1380-1472: Create a small centralized helper (e.g., a static
inline function brightness_to_u8x8 or brightness_raw) that takes fl::u8 and
returns the proper fl::u8x8 (or the raw fl::u16 then call fl::u8x8::from_raw
inside the helper) implementing the existing mapping (brightness == 255 ? 256 :
brightness); then replace the repeated expression in all inline overloads of
ColorFromPaletteHD (the overloads taking CRGBPalette16, CRGBPalette32,
TProgmemRGBPalette16, TProgmemRGBPalette32, CRGBPalette256 and any similar
inline wrappers) to call that helper and pass its result to ColorFromPaletteHD,
keeping signatures and behavior identical.

In `@tests/fl/gfx/colorutils_palette.cpp`:
- Around line 226-251: Replace the loose >0 checks with exact channel-specific
assertions: for CRGBPalette16/32/256 use
ColorFromPaletteHD(pal16,1,fl::u8x8(1),LINEARBLEND).r.raw() == 255 (and
analogous equality == 255 for .g on pal32 and .b on pal256) to verify the
correct channel and value; do the same for the progmem palettes kProgmemRgb16
and kProgmemRgb32 using the channel you expect to be 255; additionally add one
assertion that calls the brightness overload (ColorFromPaletteHD with a fl::u8
brightness argument) to cover the inline conversion path and assert the expected
channel raw value.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 77a121c0-ec74-458b-8b1d-b907e562b00b

📥 Commits

Reviewing files that changed from the base of the PR and between 327d145 and e10bebd.

📒 Files selected for processing (4)
  • src/colorutils.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • tests/fl/gfx/colorutils_palette.cpp

Comment thread src/colorutils.h
using fl::TBlendType;
using fl::ColorFromPalette;
using fl::ColorFromPaletteExtended;
using fl::ColorFromPaletteHD;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check whether CRGB16 is already re-exported into the legacy/global API surface.
# Expected: If only the struct definition is found and no `using fl::CRGB16;` exists,
# add the alias in src/colorutils.h next to the other color/palette aliases.
rg -n -C2 '\busing\s+fl::CRGB16\b|typedef\s+.*\bCRGB16\b|struct\s+CRGB16\b' --iglob '*.{h,hpp,cpp,cc}'

Repository: FastLED/FastLED

Length of output: 468


🏁 Script executed:

#!/bin/bash
# Read src/colorutils.h to see the current palette type aliases and context around line 41
cat -n src/colorutils.h | head -60

Repository: FastLED/FastLED

Length of output: 1990


🏁 Script executed:

#!/bin/bash
# Find ColorFromPaletteHD declaration to verify return type
rg -n -A5 'ColorFromPaletteHD' src/fl/gfx/colorutils.h | head -20

Repository: FastLED/FastLED

Length of output: 1248


Re-export CRGB16 with the legacy API surface.

ColorFromPaletteHD is now exposed globally but returns CRGB16, which is not re-exported. Add using fl::CRGB16; near the other palette type aliases.

Proposed diff
 using fl::CRGBPalette16;
 using fl::CRGBPalette32;
 using fl::CRGBPalette256;
+using fl::CRGB16;
 using fl::CHSVPalette16;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/colorutils.h` at line 41, The header re-exports ColorFromPaletteHD which
returns CRGB16 but CRGB16 itself isn't re-exported; add a using declaration for
fl::CRGB16 (e.g., "using fl::CRGB16;") alongside the other palette type aliases
in src/colorutils.h so callers using the legacy API surface can access CRGB16
directly; ensure the new using is placed near the existing palette aliases where
ColorFromPaletteHD is exposed.

@zackees
zackees force-pushed the issue-2372-colorfrompalette-hd branch from e10bebd to 5a6d4fc Compare April 22, 2026 15:22
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 958.27ms

Top 5 Slowest Headers

  1. FastLED.h - 727.32ms
  2. fl/fastled.h - 304.32ms
  3. fl/task/executor.h - 242.16ms
  4. crgb.h - 170.66ms
  5. fl/gfx/crgb.h - 169.47ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (727.3ms)
⚠️ Header fl/fastled.h exceeds 150ms (304.3ms)
⚠️ Header fl/task/executor.h exceeds 150ms (242.2ms)
⚠️ Header crgb.h exceeds 150ms (170.7ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (169.5ms)
⚠️ Header fl/math/ease.h exceeds 150ms (165.2ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (163.3ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (125.3ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (117.0ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (116.5ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (115.5ms)
⚠️ Header platforms/thread.h exceeds 50ms (115.4ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (115.4ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (115.3ms)
⚠️ Header fl/task/promise.h exceeds 50ms (105.1ms)
⚠️ Header fl/ui.h exceeds 50ms (102.9ms)
⚠️ Header fl/stl/json.h exceeds 50ms (63.7ms)
⚠️ Header fl/stl/function.h exceeds 50ms (58.4ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (50.2ms)
⚠️ Template instantiation time is high (51.4%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-22 15:24:15
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,732.60 ms
Frontend Time:             14.14 ms (0.8%)
Backend Time:              153.26 ms (8.8%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    10341.83 ms (596.9%)
Templates                   467.94 ms ( 27.0%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1250.7 ms - FastLED.h (SLOW)
   648.1 ms - fl/task/executor.h (SLOW)
   408.3 ms - fl/fastled.h (SLOW)
   323.4 ms - fl/task/promise.h (SLOW)
   313.3 ms - fl/task/scheduler.h (SLOW)
   305.4 ms - fl/stl/singleton.h (SLOW)
   304.8 ms - fl/stl/thread_local.h (SLOW)
   303.8 ms - fl/stl/thread.h (SLOW)
   303.7 ms - platforms/thread.h (SLOW)
   303.7 ms - platforms/stub/thread_stub.h (SLOW)
   303.7 ms - platforms/stub/thread_stub_stl.h (SLOW)
   284.3 ms - fl/stl/function.h (SLOW)
   246.6 ms - crgb.h (SLOW)
   245.5 ms - fl/gfx/crgb.h (SLOW)
   241.3 ms - fl/math/ease.h (SLOW)
   239.4 ms - fl/math/fixed_point.h (SLOW)
   139.0 ms - fl/stl/shared_ptr.h (SLOW)
   124.5 ms - fl/math/fixed_point/s4x12.h (SLOW)
   108.4 ms - fl/math/sin32.h (SLOW)
   105.9 ms - fl/math/simd.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1250.7ms)
  ├─  648.1 ms - fl/task/executor.h
  │ ├─  323.4 ms - fl/task/promise.h
  │ │ ├─  284.3 ms - fl/stl/function.h
  │ │ │ ├─  139.0 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  104.5 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   99.4 ms - fl/stl/move.h
  │ │ │ │ ├─   30.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   29.5 ms - platforms/atomic.h
  │ │ │ │ │   └─   29.5 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ │ ├─   88.9 ms - fl/stl/vector.h
  │ │ │ │ ├─   60.2 ms - fl/math/math.h
  │ │ │ │ │ └─   56.0 ms - fl/stl/undef.h
  │ │ │ │ │   └─   91.9 ms - stdlib.h
  │ │ │ │ │     ├─   46.5 ms - cstdlib
  │ │ │ │ │     │ └─   91.9 ms - stdlib.h
  │ │ │ │ │     │   ├─   46.5 ms - cstdlib
  │ │ │ │ │     │   └─    8.8 ms - types.h
  │ │ │ │ │     └─    8.8 ms - types.h
  │ │ │ │ │       ├─    8.8 ms - types.h
  │ │ │ │ │       │ ├─    8.8 ms - types.h
  │ │ │ │ │       │ ├─    1.7 ms - select.h
  │ │ │ │ │       │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.4 ms - endian.h
  │ │ │ │ │       ├─    1.7 ms - select.h
  │ │ │ │ │       ├─    1.7 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │ │       └─    1.4 ms - endian.h
  │ │ │ │ ├─   14.5 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   10.0 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    6.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    5.3 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.2 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ │ ├─   43.4 ms - fl/stl/variant.h
  │ │ │ │ └─   41.9 ms - fl/stl/new.h
  │ │ │ │   └─   41.8 ms - platforms/new.h
  │ │ │ │     └─   41.8 ms - platforms/shared/new.h
  │ │ │ │       └─   32.7 ms - new
  │ │ │ │         ├─   14.9 ms - c++config.h
  │ │ │ │         │ └─    4.9 ms - os_defines.h
  │ │ │ │         └─    0.6 ms - version.h
  │ │ │ ├─    4.9 ms - fl/stl/compiler_control.h
  │ │ │ └─    3.6 ms - fl/stl/algorithm.h
  │ │ │   └─    1.5 ms - fl/math/random.h
  │ │ │     └─    0.7 ms - fl/math/random8.h
  │ │ └─   34.8 ms - fl/stl/string.h
  │ │   ├─   10.3 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.8 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    6.9 ms - fl/stl/span.h
  │ │   │ └─    2.8 ms - fl/math/geometry.h
  │ │   ├─    4.2 ms - fl/stl/string_view.h
  │ │   └─    1.2 ms - fl/stl/optional.h
  │ ├─  313.3 ms - fl/task/scheduler.h
  │ │ ├─  305.4 ms - fl/stl/singleton.h
  │ │ │ └─  304.8 ms - fl/stl/thread_local.h
  │ │ │   └─  303.8 ms - fl/stl/thread.h
  │ │ │     └─  303.7 ms - platforms/thread.h
  │ │ │       └─  303.7 ms - platforms/stub/thread_stub.h
  │ │ │         └─  303.7 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  297.3 ms - thread
  │ │ │             ├─  159.3 ms - std_thread.h
  │ │ │             └─  120.4 ms - this_thread_sleep.h
  │ │ └─    7.2 ms - fl/task/task.h
  │ │   └─    2.8 ms - fl/trace.h
  │ │     ├─    1.8 ms - fl/stl/chrono.h
  │ │     └─    0.8 ms - fl/stl/tuple.h
  │ ├─    9.6 ms - platforms/await.h
  │ │ └─    9.2 ms - platforms/coroutine_runtime.h
  │ │   └─    7.9 ms - fl/system/engine_events.h
  │ │     ├─    4.0 ms - fl/math/screenmap.h
  │ │     │ └─    3.0 ms - fl/stl/flat_map.h
  │ │     └─    2.6 ms - fl/math/xymap.h
  │ │       └─    0.6 ms - fl/math/lut.h
  │ └─    0.6 ms - fl/task/promise_result.h
  ├─  408.3 ms - fl/fastled.h
  │ ├─  246.6 ms - crgb.h
  │ │ ├─  245.5 ms - fl/gfx/crgb.h
  │ │ │ └─  241.3 ms - fl/math/ease.h
  │ │ │   └─  239.4 ms - fl/math/fixed_point.h
  │ │ │     ├─  124.5 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  108.4 ms - fl/math/sin32.h
  │ │ │     │ │ └─  105.9 ms - fl/math/simd.h
  │ │ │     │ │   └─  105.5 ms - fl/math/simd/types.h
  │ │ │     │ │     └─  105.2 ms - platforms/simd.h
  │ │ │     │ ├─    0.8 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.4 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.3 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   14.2 ms - fl/math/fixed_point/s16x16.h
  │ │ │     └─   14.2 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─   74.4 ms - platforms.h
  │ │ └─   74.4 ms - platforms/stub/fastled_stub.h
  │ │   ├─   44.0 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   44.0 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   38.7 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   36.9 ms - fl/id_tracker.h
  │ │   │   │   └─   36.0 ms - fl/stl/mutex.h
  │ │   │   │     └─   35.9 ms - platforms/mutex.h
  │ │   │   │       └─   35.8 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    4.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   30.4 ms - platforms/stub/clockless_stub.h
  │ │     └─   30.3 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   11.0 ms - fl/channels/data.h
  │ │       │ └─    8.1 ms - fl/channels/config.h
  │ │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.4 ms - fl/chipsets/spi.h
  │ │       ├─   10.3 ms - fl/system/log.h
  │ │       │ └─    9.9 ms - fl/stl/strstream.h
  │ │       ├─    2.1 ms - fl/channels/manager.h
  │ │       ├─    1.3 ms - fl/stl/weak_ptr.h
  │ │       └─    0.9 ms - fl/channels/driver.h
  │ ├─   34.3 ms - colorutils.h
  │ │ └─   34.0 ms - fl/gfx/colorutils.h
  │ │   ├─    7.0 ms - fl/gfx/blur.h
  │ │   │ └─    3.8 ms - fl/gfx/canvas.h
  │ │   │   └─    2.3 ms - fl/math/alpha.h
  │ │   ├─    2.7 ms - fl/gfx/fill.h
  │ │   └─    1.5 ms - fl/gfx/crgb16.h
  │ ├─   18.3 ms - pixel_controller.h
  │ │ ├─   12.9 ms - pixel_iterator.h
  │ │ │ └─   12.9 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    3.7 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    2.8 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    2.3 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    3.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.1 ms - rgbw.h
  │ │   └─    2.0 ms - fl/gfx/rgbw.h
  │ └─   16.9 ms - pixeltypes.h
  │   ├─   14.1 ms - lib8tion.h
  │   │ ├─    7.1 ms - fl/math/math8.h
  │   │ │ ├─    3.5 ms - fl/math/intmap.h
  │   │ │ │ └─    2.8 ms - platforms/intmap.h
  │   │ │ ├─    1.8 ms - fl/math/scale8.h
  │   │ │ │ └─    1.8 ms - platforms/scale8.h
  │   │ │ │   └─    0.7 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.4 ms - crgb.hpp
  ├─  102.1 ms - fl/ui.h
  │ ├─   63.1 ms - fl/stl/json.h
  │ │ └─   49.7 ms - fl/stl/json/types.h
  │ │   └─    5.6 ms - fl/stl/limits.h
  │ ├─    9.0 ms - fl/ui_impl.h
  │ │ └─    8.5 ms - platforms/ui_defs.h
  │ │   ├─    1.8 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.8 ms - platforms/shared/ui/json/number_field.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/description.h
  │ │   └─    0.7 ms - platforms/shared/ui/json/help.h
  │ └─    7.7 ms - fl/asset.h
  │   └─    6.5 ms - fl/stl/url.h
  ├─   23.4 ms - chipsets.h
  │ ├─    9.6 ms - fl/chipsets/ucs7604.h
  │ │ └─    7.3 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    5.7 ms - fl/chipsets/apa102.h
  │ ├─    1.4 ms - fl/chipsets/lpd880x.h
  │ ├─    0.7 ms - fl/chipsets/p9813.h
  │ └─    0.7 ms - fl/chipsets/encoders/ws2816.h
  └─   19.3 ms - fl/audio/audio_processor.h
    ├─    4.9 ms - fl/audio/audio_context.h
    │ └─    1.4 ms - fl/audio/fft/fft.h
    ├─    1.8 ms - fl/audio/detector/vibe.h
    └─    1.1 ms - fl/audio/signal_conditioner.h
fl/task/executor.h (648.1ms)
  ├─  323.4 ms - fl/task/promise.h
  │ ├─  284.3 ms - fl/stl/function.h
  │ │ ├─  139.0 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  104.5 ms - fl/stl/type_traits.h
  │ │ │ │ └─   99.4 ms - fl/stl/move.h
  │ │ │ ├─   30.3 ms - fl/stl/atomic.h
  │ │ │ │ └─   29.5 ms - platforms/atomic.h
  │ │ │ │   └─   29.5 ms - platforms/shared/atomic.h
  │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ ├─   88.9 ms - fl/stl/vector.h
  │ │ │ ├─   60.2 ms - fl/math/math.h
  │ │ │ │ └─   56.0 ms - fl/stl/undef.h
  │ │ │ │   └─   91.9 ms - stdlib.h
  │ │ │ │     ├─   46.5 ms - cstdlib
  │ │ │ │     │ └─   91.9 ms - stdlib.h
  │ │ │ │     │   ├─   46.5 ms - cstdlib
  │ │ │ │     │   │ └─   91.9 ms - stdlib.h
  │ │ │ │     │   └─    8.8 ms - types.h
  │ │ │ │     │     ├─    8.8 ms - types.h
  │ │ │ │     │     ├─    1.7 ms - select.h
  │ │ │ │     │     ├─    1.7 ms - pthreadtypes.h
  │ │ │ │     │     └─    1.4 ms - endian.h
  │ │ │ │     └─    8.8 ms - types.h
  │ │ │ │       ├─    8.8 ms - types.h
  │ │ │ │       │ ├─    8.8 ms - types.h
  │ │ │ │       │ │ ├─    8.8 ms - types.h
  │ │ │ │       │ │ ├─    1.7 ms - select.h
  │ │ │ │       │ │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.4 ms - endian.h
  │ │ │ │       │ ├─    1.7 ms - select.h
  │ │ │ │       │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │       │ └─    1.4 ms - endian.h
  │ │ │ │       ├─    1.7 ms - select.h
  │ │ │ │       ├─    1.7 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │       └─    1.4 ms - endian.h
  │ │ │ ├─   14.5 ms - fl/stl/allocator.h
  │ │ │ │ └─   10.0 ms - fl/stl/bitset.h
  │ │ │ │   └─    6.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    5.3 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.2 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ ├─   43.4 ms - fl/stl/variant.h
  │ │ │ └─   41.9 ms - fl/stl/new.h
  │ │ │   └─   41.8 ms - platforms/new.h
  │ │ │     └─   41.8 ms - platforms/shared/new.h
  │ │ │       └─   32.7 ms - new
  │ │ │         ├─   14.9 ms - c++config.h
  │ │ │         │ └─    4.9 ms - os_defines.h
  │ │ │         │   └─    4.5 ms - features.h
  │ │ │         └─    0.6 ms - version.h
  │ │ ├─    4.9 ms - fl/stl/compiler_control.h
  │ │ └─    3.6 ms - fl/stl/algorithm.h
  │ │   └─    1.5 ms - fl/math/random.h
  │ │     └─    0.7 ms - fl/math/random8.h
  │ └─   34.8 ms - fl/stl/string.h
  │   ├─   10.3 ms - fl/stl/basic_string.h
  │   │ ├─    0.8 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    6.9 ms - fl/stl/span.h
  │   │ └─    2.8 ms - fl/math/geometry.h
  │   ├─    4.2 ms - fl/stl/string_view.h
  │   └─    1.2 ms - fl/stl/optional.h
  ├─  313.3 ms - fl/task/scheduler.h
  │ ├─  305.4 ms - fl/stl/singleton.h
  │ │ └─  304.8 ms - fl/stl/thread_local.h
  │ │   └─  303.8 ms - fl/stl/thread.h
  │ │     └─  303.7 ms - platforms/thread.h
  │ │       └─  303.7 ms - platforms/stub/thread_stub.h
  │ │         └─  303.7 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  297.3 ms - thread
  │ │             ├─  159.3 ms - std_thread.h
  │ │             │ ├─   54.9 ms - tuple
  │ │             │ ├─   29.9 ms - iosfwd
  │ │             │ ├─   19.8 ms - refwrap.h
  │ │             │ ├─    9.8 ms - gthr.h
  │ │             │ └─    5.6 ms - unique_ptr.h
  │ │             └─  120.4 ms - this_thread_sleep.h
  │ │               ├─   87.0 ms - chrono.h
  │ │               └─    3.5 ms - cerrno
  │ └─    7.2 ms - fl/task/task.h
  │   └─    2.8 ms - fl/trace.h
  │     ├─    1.8 ms - fl/stl/chrono.h
  │     └─    0.8 ms - fl/stl/tuple.h
  ├─    9.6 ms - platforms/await.h
  │ └─    9.2 ms - platforms/coroutine_runtime.h
  │   └─    7.9 ms - fl/system/engine_events.h
  │     ├─    4.0 ms - fl/math/screenmap.h
  │     │ └─    3.0 ms - fl/stl/flat_map.h
  │     └─    2.6 ms - fl/math/xymap.h
  │       └─    0.6 ms - fl/math/lut.h
  └─    0.6 ms - fl/task/promise_result.h
fl/fastled.h (408.3ms)
  ├─  246.6 ms - crgb.h
  │ ├─  245.5 ms - fl/gfx/crgb.h
  │ │ └─  241.3 ms - fl/math/ease.h
  │ │   └─  239.4 ms - fl/math/fixed_point.h
  │ │     ├─  124.5 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  108.4 ms - fl/math/sin32.h
  │ │     │ │ └─  105.9 ms - fl/math/simd.h
  │ │     │ │   └─  105.5 ms - fl/math/simd/types.h
  │ │     │ │     └─  105.2 ms - platforms/simd.h
  │ │     │ │       └─  105.2 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.8 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   14.4 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.3 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   14.2 ms - fl/math/fixed_point/s16x16.h
  │ │     └─   14.2 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─   74.4 ms - platforms.h
  │ └─   74.4 ms - platforms/stub/fastled_stub.h
  │   ├─   44.0 ms - platforms/stub/fastspi_stub.h
  │   │ └─   44.0 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   38.7 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   36.9 ms - fl/id_tracker.h
  │   │   │   └─   36.0 ms - fl/stl/mutex.h
  │   │   │     └─   35.9 ms - platforms/mutex.h
  │   │   │       └─   35.8 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   35.8 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    4.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   30.4 ms - platforms/stub/clockless_stub.h
  │     └─   30.3 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   11.0 ms - fl/channels/data.h
  │       │ └─    8.1 ms - fl/channels/config.h
  │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │       │   └─    1.4 ms - fl/chipsets/spi.h
  │       ├─   10.3 ms - fl/system/log.h
  │       │ └─    9.9 ms - fl/stl/strstream.h
  │       ├─    2.1 ms - fl/channels/manager.h
  │       ├─    1.3 ms - fl/stl/weak_ptr.h
  │       └─    0.9 ms - fl/channels/driver.h
  ├─   34.3 ms - colorutils.h
  │ └─   34.0 ms - fl/gfx/colorutils.h
  │   ├─    7.0 ms - fl/gfx/blur.h
  │   │ └─    3.8 ms - fl/gfx/canvas.h
  │   │   └─    2.3 ms - fl/math/alpha.h
  │   ├─    2.7 ms - fl/gfx/fill.h
  │   └─    1.5 ms - fl/gfx/crgb16.h
  ├─   18.3 ms - pixel_controller.h
  │ ├─   12.9 ms - pixel_iterator.h
  │ │ └─   12.9 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    3.7 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    2.8 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    2.3 ms - fl/gfx/gamma_lut.h
  │ │   ├─    3.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.1 ms - rgbw.h
  │   └─    2.0 ms - fl/gfx/rgbw.h
  └─   16.9 ms - pixeltypes.h
    ├─   14.1 ms - lib8tion.h
    │ ├─    7.1 ms - fl/math/math8.h
    │ │ ├─    3.5 ms - fl/math/intmap.h
    │ │ │ └─    2.8 ms - platforms/intmap.h
    │ │ ├─    1.8 ms - fl/math/scale8.h
    │ │ │ └─    1.8 ms - platforms/scale8.h
    │ │ │   └─    0.7 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.4 ms - crgb.hpp
fl/ui.h (102.1ms)
  ├─   63.1 ms - fl/stl/json.h
  │ └─   49.7 ms - fl/stl/json/types.h
  │   └─    5.6 ms - fl/stl/limits.h
  ├─    9.0 ms - fl/ui_impl.h
  │ └─    8.5 ms - platforms/ui_defs.h
  │   ├─    1.8 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.8 ms - platforms/shared/ui/json/number_field.h
  │   ├─    0.8 ms - platforms/shared/ui/json/description.h
  │   └─    0.7 ms - platforms/shared/ui/json/help.h
  └─    7.7 ms - fl/asset.h
    └─    6.5 ms - fl/stl/url.h
chipsets.h (23.4ms)
  ├─    9.6 ms - fl/chipsets/ucs7604.h
  │ └─    7.3 ms - fl/chipsets/encoders/ucs7604.h
  ├─    5.7 ms - fl/chipsets/apa102.h
  ├─    1.4 ms - fl/chipsets/lpd880x.h
  ├─    0.7 ms - fl/chipsets/p9813.h
  └─    0.7 ms - fl/chipsets/encoders/ws2816.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1250.7 ms - Source: FastLED.h
  2.  1250.7 ms - Total Source: 
  3.   648.1 ms - Source: fl/task/executor.h
  4.   540.3 ms - Total ParseClass: 
  5.   408.3 ms - Source: fl/fastled.h
  6.   323.4 ms - Source: fl/task/promise.h
  7.   313.3 ms - Source: fl/task/scheduler.h
  8.   305.4 ms - Source: fl/stl/singleton.h
  9.   304.8 ms - Source: fl/stl/thread_local.h
 10.   303.8 ms - Source: fl/stl/thread.h
 11.   303.7 ms - Source: platforms/thread.h
 12.   303.7 ms - Source: platforms/stub/thread_stub.h
 13.   303.7 ms - Source: platforms/stub/thread_stub_stl.h
 14.   297.3 ms - Source: thread
 15.   284.3 ms - Source: fl/stl/function.h
 16.   246.6 ms - Source: crgb.h
 17.   245.5 ms - Source: fl/gfx/crgb.h
 18.   241.3 ms - Source: fl/math/ease.h
 19.   239.4 ms - Source: fl/math/fixed_point.h
 20.   176.6 ms - Total InstantiateFunction: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1250.7ms)
    - fl/task/executor.h (648.1ms)
    - fl/fastled.h (408.3ms)
    - fl/task/promise.h (323.4ms)
    - fl/task/scheduler.h (313.3ms)
    - fl/stl/singleton.h (305.4ms)
    - fl/stl/thread_local.h (304.8ms)
    - fl/stl/thread.h (303.8ms)
    - platforms/thread.h (303.7ms)
    - platforms/stub/thread_stub.h (303.7ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1250.7ms)
2. Consider optimizing fl/task/executor.h (648.1ms)
3. Consider optimizing fl/fastled.h (408.3ms)

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/fl/gfx/colorutils_palette.cpp`:
- Around line 246-251: The test currently checks kProgmemRgb32's blue channel
which is non-zero at entry 0 and can mask a broken lookup; update the second
assertion to use the first 32-entry anchor and a channel that starts at zero so
the lookup must advance: call ColorFromPaletteHD(kProgmemRgb32, 32, fl::u8x8(1),
LINEARBLEND) and assert .g.raw() is > 0 (replace the existing kProgmemRgb32 call
and .b.raw() check accordingly).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 88f964d7-9466-40a2-be25-3fee74020842

📥 Commits

Reviewing files that changed from the base of the PR and between e10bebd and 5a6d4fc.

📒 Files selected for processing (4)
  • src/colorutils.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • tests/fl/gfx/colorutils_palette.cpp
✅ Files skipped from review due to trivial changes (1)
  • src/colorutils.h
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h

Comment on lines +246 to +251
FL_CHECK_GT(
ColorFromPaletteHD(kProgmemRgb16, 1, fl::u8x8(1), LINEARBLEND).r.raw(),
0u);
FL_CHECK_GT(
ColorFromPaletteHD(kProgmemRgb32, 1, fl::u8x8(1), LINEARBLEND).b.raw(),
0u);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Strengthen the progmem RGB32 assertion.

kProgmemRgb32[0].blue is already non-zero, so this can pass even if the lookup never advances past entry 0. Check a channel that starts at zero and use the first 32-entry anchor instead.

Proposed test tightening
     FL_CHECK_GT(
-        ColorFromPaletteHD(kProgmemRgb32, 1, fl::u8x8(1), LINEARBLEND).b.raw(),
+        ColorFromPaletteHD(kProgmemRgb32, 0x0800, fl::u8x8(1), LINEARBLEND)
+            .r.raw(),
         0u);
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/fl/gfx/colorutils_palette.cpp` around lines 246 - 251, The test
currently checks kProgmemRgb32's blue channel which is non-zero at entry 0 and
can mask a broken lookup; update the second assertion to use the first 32-entry
anchor and a channel that starts at zero so the lookup must advance: call
ColorFromPaletteHD(kProgmemRgb32, 32, fl::u8x8(1), LINEARBLEND) and assert
.g.raw() is > 0 (replace the existing kProgmemRgb32 call and .b.raw() check
accordingly).

@zackees
zackees force-pushed the issue-2372-colorfrompalette-hd branch from 5a6d4fc to d189e06 Compare April 22, 2026 15:36
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1002.29ms

Top 5 Slowest Headers

  1. FastLED.h - 759.12ms
  2. fl/fastled.h - 320.39ms
  3. fl/task/executor.h - 245.40ms
  4. crgb.h - 175.39ms
  5. fl/gfx/crgb.h - 174.09ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (759.1ms)
⚠️ Header fl/fastled.h exceeds 150ms (320.4ms)
⚠️ Header fl/task/executor.h exceeds 150ms (245.4ms)
⚠️ Header crgb.h exceeds 150ms (175.4ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (174.1ms)
⚠️ Header fl/math/ease.h exceeds 150ms (169.7ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (167.9ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (129.2ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (120.1ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (119.4ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (118.4ms)
⚠️ Header platforms/thread.h exceeds 50ms (118.3ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (118.2ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (118.2ms)
⚠️ Header fl/ui.h exceeds 50ms (109.1ms)
⚠️ Header fl/task/promise.h exceeds 50ms (104.0ms)
⚠️ Header fl/stl/json.h exceeds 50ms (66.6ms)
⚠️ Header fl/stl/function.h exceeds 50ms (60.7ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (52.0ms)
⚠️ Template instantiation time is high (51.2%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-22 15:37:45
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    3,908.95 ms
Frontend Time:             60.54 ms (1.5%)
Backend Time:              1,093.45 ms (28.0%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    13785.63 ms (352.7%)
Templates                   571.23 ms ( 14.6%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1876.1 ms - FastLED.h (SLOW)
   990.6 ms - fl/task/executor.h (SLOW)
   623.9 ms - fl/task/promise.h (SLOW)
   569.6 ms - fl/stl/function.h (SLOW)
   430.4 ms - fl/fastled.h (SLOW)
   354.4 ms - fl/task/scheduler.h (SLOW)
   345.6 ms - fl/stl/singleton.h (SLOW)
   345.4 ms - fl/stl/shared_ptr.h (SLOW)
   345.0 ms - fl/stl/thread_local.h (SLOW)
   343.8 ms - fl/stl/thread.h (SLOW)
   343.7 ms - platforms/thread.h (SLOW)
   343.7 ms - platforms/stub/thread_stub.h (SLOW)
   343.6 ms - platforms/stub/thread_stub_stl.h (SLOW)
   292.9 ms - fl/stl/type_traits.h (SLOW)
   242.9 ms - fl/stl/stdint.h (SLOW)
   237.1 ms - crgb.h (SLOW)
   235.9 ms - fl/gfx/crgb.h (SLOW)
   231.5 ms - fl/math/ease.h (SLOW)
   229.7 ms - fl/math/fixed_point.h (SLOW)
   167.6 ms - platforms/int.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1876.1ms)
  ├─  990.6 ms - fl/task/executor.h
  │ ├─  623.9 ms - fl/task/promise.h
  │ │ ├─  569.6 ms - fl/stl/function.h
  │ │ │ ├─  345.4 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  292.9 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─  160.2 ms - fl/stl/move.h
  │ │ │ │ ├─   23.1 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   22.2 ms - platforms/atomic.h
  │ │ │ │ │   └─   22.1 ms - platforms/shared/atomic.h
  │ │ │ │ ├─    9.7 ms - fl/stl/align.h
  │ │ │ │ └─    1.2 ms - fl/stl/bit_cast.h
  │ │ │ │   └─    0.6 ms - fl/stl/cstring.h
  │ │ │ ├─  128.4 ms - fl/stl/vector.h
  │ │ │ │ ├─   68.9 ms - fl/math/math.h
  │ │ │ │ │ └─   59.3 ms - fl/stl/undef.h
  │ │ │ │ │   └─   98.8 ms - stdlib.h
  │ │ │ │ │     ├─   50.0 ms - cstdlib
  │ │ │ │ │     │ └─   98.8 ms - stdlib.h
  │ │ │ │ │     │   ├─   50.0 ms - cstdlib
  │ │ │ │ │     │   ├─   10.0 ms - types.h
  │ │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │ │     ├─   10.0 ms - types.h
  │ │ │ │ │     │ ├─   10.0 ms - types.h
  │ │ │ │ │     │ │ ├─   10.0 ms - types.h
  │ │ │ │ │     │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    1.9 ms - select.h
  │ │ │ │ │     │ │ └─    1.8 ms - endian.h
  │ │ │ │ │     │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.6 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    1.9 ms - select.h
  │ │ │ │ │     │ └─    1.8 ms - endian.h
  │ │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ │ ├─   35.7 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   30.7 ms - fl/stl/bitset.h
  │ │ │ │ │   └─   27.0 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.9 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    7.4 ms - fl/stl/basic_vector.h
  │ │ │ │ ├─    4.7 ms - fl/stl/initializer_list.h
  │ │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ │ ├─   67.4 ms - fl/stl/variant.h
  │ │ │ │ └─   65.4 ms - fl/stl/new.h
  │ │ │ │   └─   65.4 ms - platforms/new.h
  │ │ │ │     └─   65.4 ms - platforms/shared/new.h
  │ │ │ │       └─   45.0 ms - new
  │ │ │ │         ├─   16.3 ms - c++config.h
  │ │ │ │         │ └─    4.9 ms - os_defines.h
  │ │ │ │         └─    0.5 ms - version.h
  │ │ │ ├─   14.8 ms - fl/stl/compiler_control.h
  │ │ │ └─    5.8 ms - fl/stl/pair.h
  │ │ └─   49.5 ms - fl/stl/string.h
  │ │   ├─   18.8 ms - fl/stl/span.h
  │ │   │ └─    9.4 ms - fl/math/geometry.h
  │ │   ├─   11.1 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.9 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    4.4 ms - fl/stl/string_view.h
  │ │   └─    1.7 ms - fl/stl/optional.h
  │ ├─  354.4 ms - fl/task/scheduler.h
  │ │ ├─  345.6 ms - fl/stl/singleton.h
  │ │ │ └─  345.0 ms - fl/stl/thread_local.h
  │ │ │   └─  343.8 ms - fl/stl/thread.h
  │ │ │     └─  343.7 ms - platforms/thread.h
  │ │ │       └─  343.7 ms - platforms/stub/thread_stub.h
  │ │ │         └─  343.6 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  338.3 ms - thread
  │ │ │             ├─  184.4 ms - std_thread.h
  │ │ │             └─  114.1 ms - this_thread_sleep.h
  │ │ └─    8.0 ms - fl/task/task.h
  │ │   └─    3.2 ms - fl/trace.h
  │ │     ├─    2.0 ms - fl/stl/chrono.h
  │ │     └─    0.8 ms - fl/stl/tuple.h
  │ ├─   10.1 ms - platforms/await.h
  │ │ └─    9.8 ms - platforms/coroutine_runtime.h
  │ │   └─    8.3 ms - fl/system/engine_events.h
  │ │     ├─    4.1 ms - fl/math/screenmap.h
  │ │     │ └─    2.9 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
  ├─  430.4 ms - fl/fastled.h
  │ ├─  237.1 ms - crgb.h
  │ │ ├─  235.9 ms - fl/gfx/crgb.h
  │ │ │ └─  231.5 ms - fl/math/ease.h
  │ │ │   └─  229.7 ms - fl/math/fixed_point.h
  │ │ │     ├─  108.6 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   91.7 ms - fl/math/sin32.h
  │ │ │     │ │ └─   89.1 ms - fl/math/simd.h
  │ │ │     │ │   └─   88.6 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   88.3 ms - platforms/simd.h
  │ │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.9 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   14.9 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.9 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   14.9 ms - fl/math/fixed_point/s8x24.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─   82.0 ms - platforms.h
  │ │ └─   81.9 ms - platforms/stub/fastled_stub.h
  │ │   ├─   48.8 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   48.7 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   42.7 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   40.6 ms - fl/id_tracker.h
  │ │   │   │   └─   39.5 ms - fl/stl/mutex.h
  │ │   │   │     └─   39.5 ms - platforms/mutex.h
  │ │   │   │       └─   39.3 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.6 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   33.1 ms - platforms/stub/clockless_stub.h
  │ │     └─   33.0 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   11.9 ms - fl/channels/data.h
  │ │       │ └─    8.8 ms - fl/channels/config.h
  │ │       │   ├─    1.9 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.4 ms - fl/chipsets/spi.h
  │ │       ├─   11.3 ms - fl/system/log.h
  │ │       │ └─   10.8 ms - fl/stl/strstream.h
  │ │       ├─    2.3 ms - fl/channels/manager.h
  │ │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │ │       └─    1.0 ms - fl/channels/driver.h
  │ ├─   37.3 ms - colorutils.h
  │ │ └─   36.9 ms - fl/gfx/colorutils.h
  │ │   ├─    7.7 ms - fl/gfx/blur.h
  │ │   │ └─    4.2 ms - fl/gfx/canvas.h
  │ │   │   └─    2.5 ms - fl/math/alpha.h
  │ │   ├─    2.8 ms - fl/gfx/fill.h
  │ │   └─    1.6 ms - fl/gfx/crgb16.h
  │ ├─   28.8 ms - pixeltypes.h
  │ │ ├─   25.6 ms - lib8tion.h
  │ │ │ ├─   18.0 ms - fl/math/math8.h
  │ │ │ │ ├─   12.2 ms - fl/math/scale8.h
  │ │ │ │ │ └─   12.2 ms - platforms/scale8.h
  │ │ │ │ │   └─   11.0 ms - platforms/shared/scale8.h
  │ │ │ │ ├─    4.1 ms - fl/math/intmap.h
  │ │ │ │ │ └─    3.2 ms - platforms/intmap.h
  │ │ │ │ └─    1.5 ms - platforms/math8.h
  │ │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ │ ├─    1.6 ms - fl/math/beat.h
  │ │ │ │ └─    0.9 ms - fl/math/trig8.h
  │ │ │ │   └─    0.8 ms - platforms/trig8.h
  │ │ │ │     └─    0.7 ms - platforms/shared/trig8.h
  │ │ │ └─    0.5 ms - fl/math/qfx.h
  │ │ └─    2.8 ms - crgb.hpp
  │ └─   20.6 ms - pixel_controller.h
  │   ├─   14.7 ms - pixel_iterator.h
  │   │ └─   14.6 ms - fl/chipsets/encoders/pixel_iterator.h
  │   │   ├─    4.2 ms - fl/chipsets/encoders/apa102.h
  │   │   │ └─    3.2 ms - fl/chipsets/encoders/encoder_utils.h
  │   │   │   └─    2.6 ms - fl/gfx/gamma_lut.h
  │   │   ├─    4.1 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │   │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │   │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
  │   └─    2.4 ms - rgbw.h
  │     └─    2.3 ms - fl/gfx/rgbw.h
  ├─  242.9 ms - fl/stl/stdint.h
  │ └─  167.6 ms - platforms/int.h
  │   ├─  166.9 ms - platforms/shared/int.h
  │   │ └─  166.8 ms - platforms/shared/int_linux.h
  │   └─    0.6 ms - platforms/arm/is_arm.h
  ├─  120.1 ms - fl/ui.h
  │ ├─   66.7 ms - fl/stl/json.h
  │ │ └─   52.4 ms - fl/stl/json/types.h
  │ │   └─    6.4 ms - fl/stl/limits.h
  │ ├─   10.1 ms - fl/ui_impl.h
  │ │ └─    9.6 ms - platforms/ui_defs.h
  │ │   ├─    2.1 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/help.h
  │ └─    8.6 ms - fl/asset.h
  │   └─    7.1 ms - fl/stl/url.h
  └─   25.9 ms - chipsets.h
    ├─   10.3 ms - fl/chipsets/ucs7604.h
    │ └─    7.8 ms - fl/chipsets/encoders/ucs7604.h
    ├─    5.9 ms - fl/chipsets/apa102.h
    ├─    1.5 ms - fl/chipsets/lpd880x.h
    ├─    0.8 ms - fl/chipsets/encoders/ws2816.h
    └─    0.8 ms - fl/chipsets/p9813.h
fl/task/executor.h (990.6ms)
  ├─  623.9 ms - fl/task/promise.h
  │ ├─  569.6 ms - fl/stl/function.h
  │ │ ├─  345.4 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  292.9 ms - fl/stl/type_traits.h
  │ │ │ │ └─  160.2 ms - fl/stl/move.h
  │ │ │ ├─   23.1 ms - fl/stl/atomic.h
  │ │ │ │ └─   22.2 ms - platforms/atomic.h
  │ │ │ │   └─   22.1 ms - platforms/shared/atomic.h
  │ │ │ ├─    9.7 ms - fl/stl/align.h
  │ │ │ └─    1.2 ms - fl/stl/bit_cast.h
  │ │ │   └─    0.6 ms - fl/stl/cstring.h
  │ │ ├─  128.4 ms - fl/stl/vector.h
  │ │ │ ├─   68.9 ms - fl/math/math.h
  │ │ │ │ └─   59.3 ms - fl/stl/undef.h
  │ │ │ │   └─   98.8 ms - stdlib.h
  │ │ │ │     ├─   50.0 ms - cstdlib
  │ │ │ │     │ └─   98.8 ms - stdlib.h
  │ │ │ │     │   ├─   50.0 ms - cstdlib
  │ │ │ │     │   │ └─   98.8 ms - stdlib.h
  │ │ │ │     │   ├─   10.0 ms - types.h
  │ │ │ │     │   │ ├─   10.0 ms - types.h
  │ │ │ │     │   │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    1.9 ms - select.h
  │ │ │ │     │   │ └─    1.8 ms - endian.h
  │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │     ├─   10.0 ms - types.h
  │ │ │ │     │ ├─   10.0 ms - types.h
  │ │ │ │     │ │ ├─   10.0 ms - types.h
  │ │ │ │     │ │ │ ├─   10.0 ms - types.h
  │ │ │ │     │ │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.9 ms - select.h
  │ │ │ │     │ │ │ └─    1.8 ms - endian.h
  │ │ │ │     │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.6 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    1.9 ms - select.h
  │ │ │ │     │ │ └─    1.8 ms - endian.h
  │ │ │ │     │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.6 ms - thread-shared-types.h
  │ │ │ │     │ ├─    1.9 ms - select.h
  │ │ │ │     │ └─    1.8 ms - endian.h
  │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ ├─   35.7 ms - fl/stl/allocator.h
  │ │ │ │ └─   30.7 ms - fl/stl/bitset.h
  │ │ │ │   └─   27.0 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.9 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    7.4 ms - fl/stl/basic_vector.h
  │ │ │ ├─    4.7 ms - fl/stl/initializer_list.h
  │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ ├─   67.4 ms - fl/stl/variant.h
  │ │ │ └─   65.4 ms - fl/stl/new.h
  │ │ │   └─   65.4 ms - platforms/new.h
  │ │ │     └─   65.4 ms - platforms/shared/new.h
  │ │ │       └─   45.0 ms - new
  │ │ │         ├─   16.3 ms - c++config.h
  │ │ │         │ └─    4.9 ms - os_defines.h
  │ │ │         │   └─    4.4 ms - features.h
  │ │ │         └─    0.5 ms - version.h
  │ │ ├─   14.8 ms - fl/stl/compiler_control.h
  │ │ └─    5.8 ms - fl/stl/pair.h
  │ └─   49.5 ms - fl/stl/string.h
  │   ├─   18.8 ms - fl/stl/span.h
  │   │ └─    9.4 ms - fl/math/geometry.h
  │   ├─   11.1 ms - fl/stl/basic_string.h
  │   │ ├─    0.9 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    4.4 ms - fl/stl/string_view.h
  │   └─    1.7 ms - fl/stl/optional.h
  ├─  354.4 ms - fl/task/scheduler.h
  │ ├─  345.6 ms - fl/stl/singleton.h
  │ │ └─  345.0 ms - fl/stl/thread_local.h
  │ │   └─  343.8 ms - fl/stl/thread.h
  │ │     └─  343.7 ms - platforms/thread.h
  │ │       └─  343.7 ms - platforms/stub/thread_stub.h
  │ │         └─  343.6 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  338.3 ms - thread
  │ │             ├─  184.4 ms - std_thread.h
  │ │             │ ├─   53.3 ms - tuple
  │ │             │ ├─   38.4 ms - iosfwd
  │ │             │ ├─   18.9 ms - refwrap.h
  │ │             │ ├─   14.2 ms - gthr.h
  │ │             │ └─   13.6 ms - unique_ptr.h
  │ │             └─  114.1 ms - this_thread_sleep.h
  │ │               ├─   91.9 ms - chrono.h
  │ │               └─    3.3 ms - cerrno
  │ └─    8.0 ms - fl/task/task.h
  │   └─    3.2 ms - fl/trace.h
  │     ├─    2.0 ms - fl/stl/chrono.h
  │     └─    0.8 ms - fl/stl/tuple.h
  ├─   10.1 ms - platforms/await.h
  │ └─    9.8 ms - platforms/coroutine_runtime.h
  │   └─    8.3 ms - fl/system/engine_events.h
  │     ├─    4.1 ms - fl/math/screenmap.h
  │     │ └─    2.9 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 (430.4ms)
  ├─  237.1 ms - crgb.h
  │ ├─  235.9 ms - fl/gfx/crgb.h
  │ │ └─  231.5 ms - fl/math/ease.h
  │ │   └─  229.7 ms - fl/math/fixed_point.h
  │ │     ├─  108.6 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   91.7 ms - fl/math/sin32.h
  │ │     │ │ └─   89.1 ms - fl/math/simd.h
  │ │     │ │   └─   88.6 ms - fl/math/simd/types.h
  │ │     │ │     └─   88.3 ms - platforms/simd.h
  │ │     │ │       └─   88.3 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   14.9 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   14.9 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.9 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   14.9 ms - fl/math/fixed_point/s8x24.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─   82.0 ms - platforms.h
  │ └─   81.9 ms - platforms/stub/fastled_stub.h
  │   ├─   48.8 ms - platforms/stub/fastspi_stub.h
  │   │ └─   48.7 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   42.7 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   40.6 ms - fl/id_tracker.h
  │   │   │   └─   39.5 ms - fl/stl/mutex.h
  │   │   │     └─   39.5 ms - platforms/mutex.h
  │   │   │       └─   39.3 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   39.3 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.6 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   33.1 ms - platforms/stub/clockless_stub.h
  │     └─   33.0 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   11.9 ms - fl/channels/data.h
  │       │ └─    8.8 ms - fl/channels/config.h
  │       │   ├─    1.9 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │       │   └─    1.4 ms - fl/chipsets/spi.h
  │       ├─   11.3 ms - fl/system/log.h
  │       │ └─   10.8 ms - fl/stl/strstream.h
  │       ├─    2.3 ms - fl/channels/manager.h
  │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │       └─    1.0 ms - fl/channels/driver.h
  ├─   37.3 ms - colorutils.h
  │ └─   36.9 ms - fl/gfx/colorutils.h
  │   ├─    7.7 ms - fl/gfx/blur.h
  │   │ └─    4.2 ms - fl/gfx/canvas.h
  │   │   └─    2.5 ms - fl/math/alpha.h
  │   ├─    2.8 ms - fl/gfx/fill.h
  │   └─    1.6 ms - fl/gfx/crgb16.h
  ├─   28.8 ms - pixeltypes.h
  │ ├─   25.6 ms - lib8tion.h
  │ │ ├─   18.0 ms - fl/math/math8.h
  │ │ │ ├─   12.2 ms - fl/math/scale8.h
  │ │ │ │ └─   12.2 ms - platforms/scale8.h
  │ │ │ │   └─   11.0 ms - platforms/shared/scale8.h
  │ │ │ ├─    4.1 ms - fl/math/intmap.h
  │ │ │ │ └─    3.2 ms - platforms/intmap.h
  │ │ │ └─    1.5 ms - platforms/math8.h
  │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ ├─    1.6 ms - fl/math/beat.h
  │ │ │ └─    0.9 ms - fl/math/trig8.h
  │ │ │   └─    0.8 ms - platforms/trig8.h
  │ │ │     └─    0.7 ms - platforms/shared/trig8.h
  │ │ └─    0.5 ms - fl/math/qfx.h
  │ └─    2.8 ms - crgb.hpp
  └─   20.6 ms - pixel_controller.h
    ├─   14.7 ms - pixel_iterator.h
    │ └─   14.6 ms - fl/chipsets/encoders/pixel_iterator.h
    │   ├─    4.2 ms - fl/chipsets/encoders/apa102.h
    │   │ └─    3.2 ms - fl/chipsets/encoders/encoder_utils.h
    │   │   └─    2.6 ms - fl/gfx/gamma_lut.h
    │   ├─    4.1 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
    │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
    │   └─    0.7 ms - fl/chipsets/encoders/hd108.h
    └─    2.4 ms - rgbw.h
      └─    2.3 ms - fl/gfx/rgbw.h
fl/stl/stdint.h (242.9ms)
  └─  167.6 ms - platforms/int.h
    ├─  166.9 ms - platforms/shared/int.h
    │ └─  166.8 ms - platforms/shared/int_linux.h
    └─    0.6 ms - platforms/arm/is_arm.h
fl/ui.h (120.1ms)
  ├─   66.7 ms - fl/stl/json.h
  │ └─   52.4 ms - fl/stl/json/types.h
  │   └─    6.4 ms - fl/stl/limits.h
  ├─   10.1 ms - fl/ui_impl.h
  │ └─    9.6 ms - platforms/ui_defs.h
  │   ├─    2.1 ms - platforms/shared/ui/json/audio.h
  │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │   ├─    0.8 ms - platforms/shared/ui/json/number_field.h
  │   └─    0.8 ms - platforms/shared/ui/json/help.h
  └─    8.6 ms - fl/asset.h
    └─    7.1 ms - fl/stl/url.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1876.1 ms - Source: FastLED.h
  2.  1876.1 ms - Total Source: 
  3.   990.6 ms - Source: fl/task/executor.h
  4.   716.6 ms - Total ParseClass: 
  5.   623.9 ms - Source: fl/task/promise.h
  6.   569.6 ms - Source: fl/stl/function.h
  7.   430.4 ms - Source: fl/fastled.h
  8.   354.4 ms - Source: fl/task/scheduler.h
  9.   345.6 ms - Source: fl/stl/singleton.h
 10.   345.4 ms - Source: fl/stl/shared_ptr.h
 11.   345.0 ms - Source: fl/stl/thread_local.h
 12.   343.8 ms - Source: fl/stl/thread.h
 13.   343.7 ms - Source: platforms/thread.h
 14.   343.7 ms - Source: platforms/stub/thread_stub.h
 15.   343.6 ms - Source: platforms/stub/thread_stub_stl.h
 16.   338.3 ms - Source: thread
 17.   292.9 ms - Source: fl/stl/type_traits.h
 18.   242.9 ms - Source: fl/stl/stdint.h
 19.   237.1 ms - Source: crgb.h
 20.   235.9 ms - Source: fl/gfx/crgb.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1876.1ms)
    - fl/task/executor.h (990.6ms)
    - fl/task/promise.h (623.9ms)
    - fl/stl/function.h (569.6ms)
    - fl/fastled.h (430.4ms)
    - fl/task/scheduler.h (354.4ms)
    - fl/stl/singleton.h (345.6ms)
    - fl/stl/shared_ptr.h (345.4ms)
    - fl/stl/thread_local.h (345.0ms)
    - fl/stl/thread.h (343.8ms)

✓  Template instantiation time is acceptable (<15% of total)
✓  Lexing time is acceptable (<10% of total)

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1876.1ms)
2. Consider optimizing fl/task/executor.h (990.6ms)
3. Consider optimizing fl/task/promise.h (623.9ms)

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

@zackees
zackees force-pushed the issue-2372-colorfrompalette-hd branch from d189e06 to dfbc608 Compare April 22, 2026 15:42
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1202.59ms

Top 5 Slowest Headers

  1. FastLED.h - 926.92ms
  2. fl/fastled.h - 394.62ms
  3. fl/task/executor.h - 291.92ms
  4. crgb.h - 221.84ms
  5. fl/gfx/crgb.h - 220.53ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (926.9ms)
⚠️ Header fl/fastled.h exceeds 150ms (394.6ms)
⚠️ Header fl/task/executor.h exceeds 150ms (291.9ms)
⚠️ Header crgb.h exceeds 150ms (221.8ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (220.5ms)
⚠️ Header fl/math/ease.h exceeds 150ms (215.6ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (213.2ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (150.4ms)
⚠️ Header fl/ui.h exceeds 50ms (141.2ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (140.8ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (140.0ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (138.9ms)
⚠️ Header platforms/thread.h exceeds 50ms (138.8ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (138.8ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (138.7ms)
⚠️ Header fl/task/promise.h exceeds 50ms (127.6ms)
⚠️ Header fl/stl/json.h exceeds 50ms (91.0ms)
⚠️ Header fl/stl/function.h exceeds 50ms (78.2ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (73.1ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (63.8ms)
⚠️ Header platforms.h exceeds 50ms (57.7ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (57.6ms)
⚠️ Template instantiation time is high (52.0%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-22 15:42:55
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    4,967.86 ms
Frontend Time:             77.43 ms (1.6%)
Backend Time:              1,229.23 ms (24.7%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    19351.67 ms (389.5%)
Templates                   695.51 ms ( 14.0%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  2603.1 ms - FastLED.h (SLOW)
  1457.9 ms - fl/task/executor.h (SLOW)
   990.6 ms - fl/task/promise.h (SLOW)
   927.2 ms - fl/stl/function.h (SLOW)
   569.7 ms - fl/fastled.h (SLOW)
   543.0 ms - fl/stl/shared_ptr.h (SLOW)
   496.7 ms - fl/stl/type_traits.h (SLOW)
   453.5 ms - fl/task/scheduler.h (SLOW)
   443.8 ms - fl/stl/singleton.h (SLOW)
   443.1 ms - fl/stl/thread_local.h (SLOW)
   442.0 ms - fl/stl/thread.h (SLOW)
   441.9 ms - platforms/thread.h (SLOW)
   441.8 ms - platforms/stub/thread_stub.h (SLOW)
   441.8 ms - platforms/stub/thread_stub_stl.h (SLOW)
   321.2 ms - fl/stl/stdint.h (SLOW)
   302.5 ms - fl/stl/move.h (SLOW)
   275.3 ms - crgb.h (SLOW)
   274.0 ms - fl/gfx/crgb.h (SLOW)
   269.1 ms - fl/math/ease.h (SLOW)
   266.7 ms - fl/math/fixed_point.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (2603.1ms)
  ├─ 1457.9 ms - fl/task/executor.h
  │ ├─  990.6 ms - fl/task/promise.h
  │ │ ├─  927.2 ms - fl/stl/function.h
  │ │ │ ├─  543.0 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  496.7 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─  302.5 ms - fl/stl/move.h
  │ │ │ │ ├─   15.1 ms - fl/stl/align.h
  │ │ │ │ ├─    7.7 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    6.8 ms - platforms/atomic.h
  │ │ │ │ │   └─    6.7 ms - platforms/shared/atomic.h
  │ │ │ │ └─    1.2 ms - fl/stl/bit_cast.h
  │ │ │ │   └─    0.7 ms - fl/stl/cstring.h
  │ │ │ ├─  202.0 ms - fl/stl/vector.h
  │ │ │ │ ├─  115.4 ms - fl/math/math.h
  │ │ │ │ │ └─   86.7 ms - fl/stl/undef.h
  │ │ │ │ │   └─   79.8 ms - stdlib.h
  │ │ │ │ │     ├─   40.1 ms - cstdlib
  │ │ │ │ │     │ └─   79.8 ms - stdlib.h
  │ │ │ │ │     │   ├─   40.1 ms - cstdlib
  │ │ │ │ │     │   ├─   10.9 ms - types.h
  │ │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │ │     ├─   10.9 ms - types.h
  │ │ │ │ │     │ ├─   10.9 ms - types.h
  │ │ │ │ │     │ │ ├─   10.9 ms - types.h
  │ │ │ │ │     │ │ ├─    2.1 ms - select.h
  │ │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    2.0 ms - endian.h
  │ │ │ │ │     │ ├─    2.1 ms - select.h
  │ │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │ │     │ └─    2.0 ms - endian.h
  │ │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ │ ├─   45.2 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   39.4 ms - fl/stl/bitset.h
  │ │ │ │ │   └─   34.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.2 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─   18.8 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    8.3 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.9 ms - fl/stl/functional.h
  │ │ │ ├─  145.9 ms - fl/stl/variant.h
  │ │ │ │ └─  143.8 ms - fl/stl/new.h
  │ │ │ │   └─  143.8 ms - platforms/new.h
  │ │ │ │     └─  143.8 ms - platforms/shared/new.h
  │ │ │ │       └─  106.1 ms - new
  │ │ │ │         ├─   20.2 ms - c++config.h
  │ │ │ │         │ └─    5.5 ms - os_defines.h
  │ │ │ │         └─    0.7 ms - version.h
  │ │ │ ├─   16.8 ms - fl/stl/compiler_control.h
  │ │ │ └─   10.3 ms - fl/stl/pair.h
  │ │ └─   58.1 ms - fl/stl/string.h
  │ │   ├─   21.7 ms - fl/stl/span.h
  │ │   │ └─   11.2 ms - fl/math/geometry.h
  │ │   ├─   12.8 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.0 ms - fl/stl/not_null.h
  │ │   │ ├─    0.9 ms - fl/stl/iterator.h
  │ │   │ └─    0.5 ms - fl/stl/charconv.h
  │ │   ├─    5.7 ms - fl/stl/string_view.h
  │ │   └─    1.8 ms - fl/stl/optional.h
  │ ├─  453.5 ms - fl/task/scheduler.h
  │ │ ├─  443.8 ms - fl/stl/singleton.h
  │ │ │ └─  443.1 ms - fl/stl/thread_local.h
  │ │ │   └─  442.0 ms - fl/stl/thread.h
  │ │ │     └─  441.9 ms - platforms/thread.h
  │ │ │       └─  441.8 ms - platforms/stub/thread_stub.h
  │ │ │         └─  441.8 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  435.1 ms - thread
  │ │ │             ├─  262.3 ms - std_thread.h
  │ │ │             └─  154.3 ms - this_thread_sleep.h
  │ │ └─    8.8 ms - fl/task/task.h
  │ │   └─    3.6 ms - fl/trace.h
  │ │     ├─    2.2 ms - fl/stl/chrono.h
  │ │     └─    1.0 ms - fl/stl/tuple.h
  │ ├─   11.6 ms - platforms/await.h
  │ │ └─   11.2 ms - platforms/coroutine_runtime.h
  │ │   └─    9.6 ms - fl/system/engine_events.h
  │ │     ├─    5.0 ms - fl/math/screenmap.h
  │ │     │ └─    3.8 ms - fl/stl/flat_map.h
  │ │     └─    3.0 ms - fl/math/xymap.h
  │ │       └─    0.8 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  569.7 ms - fl/fastled.h
  │ ├─  275.3 ms - crgb.h
  │ │ ├─  274.0 ms - fl/gfx/crgb.h
  │ │ │ └─  269.1 ms - fl/math/ease.h
  │ │ │   └─  266.7 ms - fl/math/fixed_point.h
  │ │ │     ├─  117.9 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   97.3 ms - fl/math/sin32.h
  │ │ │     │ │ └─   94.1 ms - fl/math/simd.h
  │ │ │     │ │   └─   93.6 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   93.3 ms - platforms/simd.h
  │ │ │     │ ├─    1.0 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   18.8 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   18.5 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   18.4 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   18.3 ms - fl/math/fixed_point/s8x24.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─  130.7 ms - platforms.h
  │ │ └─  130.6 ms - platforms/stub/fastled_stub.h
  │ │   ├─   93.8 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   93.8 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   87.5 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   85.4 ms - fl/id_tracker.h
  │ │   │   │   └─   84.4 ms - fl/stl/mutex.h
  │ │   │   │     └─   84.4 ms - platforms/mutex.h
  │ │   │   │       └─   84.2 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   36.7 ms - platforms/stub/clockless_stub.h
  │ │     └─   36.7 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   13.1 ms - fl/system/log.h
  │ │       │ └─   12.7 ms - fl/stl/strstream.h
  │ │       ├─   13.0 ms - fl/channels/data.h
  │ │       │ └─    9.7 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
  │ │       ├─    2.3 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.1 ms - fl/channels/driver.h
  │ ├─   50.2 ms - pixeltypes.h
  │ │ ├─   46.3 ms - lib8tion.h
  │ │ │ ├─   37.1 ms - fl/math/math8.h
  │ │ │ │ ├─   29.7 ms - fl/math/scale8.h
  │ │ │ │ │ └─   29.7 ms - platforms/scale8.h
  │ │ │ │ │   └─   28.1 ms - platforms/shared/scale8.h
  │ │ │ │ ├─    5.2 ms - fl/math/intmap.h
  │ │ │ │ │ └─    4.1 ms - platforms/intmap.h
  │ │ │ │ └─    2.0 ms - platforms/math8.h
  │ │ │ │   └─    1.6 ms - platforms/shared/math8.h
  │ │ │ ├─    2.0 ms - fl/math/beat.h
  │ │ │ │ └─    1.0 ms - fl/math/trig8.h
  │ │ │ │   └─    1.0 ms - platforms/trig8.h
  │ │ │ │     └─    0.9 ms - platforms/shared/trig8.h
  │ │ │ └─    0.6 ms - fl/math/qfx.h
  │ │ └─    3.5 ms - crgb.hpp
  │ ├─   42.5 ms - colorutils.h
  │ │ └─   42.1 ms - fl/gfx/colorutils.h
  │ │   ├─    8.9 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
  │ │   └─    1.8 ms - fl/gfx/crgb16.h
  │ └─   27.9 ms - fastled_delay.h
  │   └─   27.6 ms - fl/system/delay.h
  │     └─   26.9 ms - platforms/delay.h
  │       └─   26.2 ms - platforms/delaycycles.h
  │         ├─   25.5 ms - platforms/delaycycles_generic.h
  │         └─    0.6 ms - platforms/shared/delay_cycles_generic.h
  ├─  321.2 ms - fl/stl/stdint.h
  │ └─  218.7 ms - platforms/int.h
  │   ├─  218.0 ms - platforms/shared/int.h
  │   │ └─  217.9 ms - platforms/shared/int_linux.h
  │   └─    0.6 ms - platforms/arm/is_arm.h
  ├─  136.7 ms - fl/ui.h
  │ ├─   78.2 ms - fl/stl/json.h
  │ │ └─   60.8 ms - fl/stl/json/types.h
  │ │   └─    7.6 ms - fl/stl/limits.h
  │ ├─   10.2 ms - fl/ui_impl.h
  │ │ └─    9.6 ms - platforms/ui_defs.h
  │ │   ├─    2.1 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.6 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/number_field.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/description.h
  │ └─   10.1 ms - fl/asset.h
  │   └─    8.5 ms - fl/stl/url.h
  └─   28.4 ms - chipsets.h
    ├─   11.6 ms - fl/chipsets/ucs7604.h
    │ └─    8.7 ms - fl/chipsets/encoders/ucs7604.h
    ├─    6.8 ms - fl/chipsets/apa102.h
    ├─    1.7 ms - fl/chipsets/lpd880x.h
    ├─    0.9 ms - fl/chipsets/p9813.h
    └─    0.8 ms - fl/chipsets/ws2801.h
fl/task/executor.h (1457.9ms)
  ├─  990.6 ms - fl/task/promise.h
  │ ├─  927.2 ms - fl/stl/function.h
  │ │ ├─  543.0 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  496.7 ms - fl/stl/type_traits.h
  │ │ │ │ └─  302.5 ms - fl/stl/move.h
  │ │ │ ├─   15.1 ms - fl/stl/align.h
  │ │ │ ├─    7.7 ms - fl/stl/atomic.h
  │ │ │ │ └─    6.8 ms - platforms/atomic.h
  │ │ │ │   └─    6.7 ms - platforms/shared/atomic.h
  │ │ │ └─    1.2 ms - fl/stl/bit_cast.h
  │ │ │   └─    0.7 ms - fl/stl/cstring.h
  │ │ ├─  202.0 ms - fl/stl/vector.h
  │ │ │ ├─  115.4 ms - fl/math/math.h
  │ │ │ │ └─   86.7 ms - fl/stl/undef.h
  │ │ │ │   └─   79.8 ms - stdlib.h
  │ │ │ │     ├─   40.1 ms - cstdlib
  │ │ │ │     │ └─   79.8 ms - stdlib.h
  │ │ │ │     │   ├─   40.1 ms - cstdlib
  │ │ │ │     │   │ └─   79.8 ms - stdlib.h
  │ │ │ │     │   ├─   10.9 ms - types.h
  │ │ │ │     │   │ ├─   10.9 ms - types.h
  │ │ │ │     │   │ ├─    2.1 ms - select.h
  │ │ │ │     │   │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │   │ └─    2.0 ms - endian.h
  │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │     ├─   10.9 ms - types.h
  │ │ │ │     │ ├─   10.9 ms - types.h
  │ │ │ │     │ │ ├─   10.9 ms - types.h
  │ │ │ │     │ │ │ ├─   10.9 ms - types.h
  │ │ │ │     │ │ │ ├─    2.1 ms - select.h
  │ │ │ │     │ │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    2.0 ms - endian.h
  │ │ │ │     │ │ ├─    2.1 ms - select.h
  │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │     │ │ └─    2.0 ms - endian.h
  │ │ │ │     │ ├─    2.1 ms - select.h
  │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │     │ └─    2.0 ms - endian.h
  │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ ├─   45.2 ms - fl/stl/allocator.h
  │ │ │ │ └─   39.4 ms - fl/stl/bitset.h
  │ │ │ │   └─   34.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.2 ms - fl/stl/unique_ptr.h
  │ │ │ ├─   18.8 ms - fl/stl/initializer_list.h
  │ │ │ ├─    8.3 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.9 ms - fl/stl/functional.h
  │ │ ├─  145.9 ms - fl/stl/variant.h
  │ │ │ └─  143.8 ms - fl/stl/new.h
  │ │ │   └─  143.8 ms - platforms/new.h
  │ │ │     └─  143.8 ms - platforms/shared/new.h
  │ │ │       └─  106.1 ms - new
  │ │ │         ├─   20.2 ms - c++config.h
  │ │ │         │ └─    5.5 ms - os_defines.h
  │ │ │         │   └─    5.0 ms - features.h
  │ │ │         └─    0.7 ms - version.h
  │ │ ├─   16.8 ms - fl/stl/compiler_control.h
  │ │ └─   10.3 ms - fl/stl/pair.h
  │ └─   58.1 ms - fl/stl/string.h
  │   ├─   21.7 ms - fl/stl/span.h
  │   │ └─   11.2 ms - fl/math/geometry.h
  │   ├─   12.8 ms - fl/stl/basic_string.h
  │   │ ├─    1.0 ms - fl/stl/not_null.h
  │   │ ├─    0.9 ms - fl/stl/iterator.h
  │   │ └─    0.5 ms - fl/stl/charconv.h
  │   ├─    5.7 ms - fl/stl/string_view.h
  │   └─    1.8 ms - fl/stl/optional.h
  ├─  453.5 ms - fl/task/scheduler.h
  │ ├─  443.8 ms - fl/stl/singleton.h
  │ │ └─  443.1 ms - fl/stl/thread_local.h
  │ │   └─  442.0 ms - fl/stl/thread.h
  │ │     └─  441.9 ms - platforms/thread.h
  │ │       └─  441.8 ms - platforms/stub/thread_stub.h
  │ │         └─  441.8 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  435.1 ms - thread
  │ │             ├─  262.3 ms - std_thread.h
  │ │             │ ├─   86.3 ms - tuple
  │ │             │ ├─   43.5 ms - unique_ptr.h
  │ │             │ ├─   28.0 ms - iosfwd
  │ │             │ ├─   27.1 ms - refwrap.h
  │ │             │ └─   16.6 ms - gthr.h
  │ │             └─  154.3 ms - this_thread_sleep.h
  │ │               ├─  123.8 ms - chrono.h
  │ │               └─    4.6 ms - cerrno
  │ └─    8.8 ms - fl/task/task.h
  │   └─    3.6 ms - fl/trace.h
  │     ├─    2.2 ms - fl/stl/chrono.h
  │     └─    1.0 ms - fl/stl/tuple.h
  ├─   11.6 ms - platforms/await.h
  │ └─   11.2 ms - platforms/coroutine_runtime.h
  │   └─    9.6 ms - fl/system/engine_events.h
  │     ├─    5.0 ms - fl/math/screenmap.h
  │     │ └─    3.8 ms - fl/stl/flat_map.h
  │     └─    3.0 ms - fl/math/xymap.h
  │       └─    0.8 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/fastled.h (569.7ms)
  ├─  275.3 ms - crgb.h
  │ ├─  274.0 ms - fl/gfx/crgb.h
  │ │ └─  269.1 ms - fl/math/ease.h
  │ │   └─  266.7 ms - fl/math/fixed_point.h
  │ │     ├─  117.9 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   97.3 ms - fl/math/sin32.h
  │ │     │ │ └─   94.1 ms - fl/math/simd.h
  │ │     │ │   └─   93.6 ms - fl/math/simd/types.h
  │ │     │ │     └─   93.3 ms - platforms/simd.h
  │ │     │ │       └─   93.3 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.0 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   18.8 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   18.5 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   18.4 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   18.3 ms - fl/math/fixed_point/s8x24.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─  130.7 ms - platforms.h
  │ └─  130.6 ms - platforms/stub/fastled_stub.h
  │   ├─   93.8 ms - platforms/stub/fastspi_stub.h
  │   │ └─   93.8 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   87.5 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   85.4 ms - fl/id_tracker.h
  │   │   │   └─   84.4 ms - fl/stl/mutex.h
  │   │   │     └─   84.4 ms - platforms/mutex.h
  │   │   │       └─   84.2 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   84.2 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   36.7 ms - platforms/stub/clockless_stub.h
  │     └─   36.7 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   13.1 ms - fl/system/log.h
  │       │ └─   12.7 ms - fl/stl/strstream.h
  │       ├─   13.0 ms - fl/channels/data.h
  │       │ └─    9.7 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
  │       ├─    2.3 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.1 ms - fl/channels/driver.h
  ├─   50.2 ms - pixeltypes.h
  │ ├─   46.3 ms - lib8tion.h
  │ │ ├─   37.1 ms - fl/math/math8.h
  │ │ │ ├─   29.7 ms - fl/math/scale8.h
  │ │ │ │ └─   29.7 ms - platforms/scale8.h
  │ │ │ │   └─   28.1 ms - platforms/shared/scale8.h
  │ │ │ ├─    5.2 ms - fl/math/intmap.h
  │ │ │ │ └─    4.1 ms - platforms/intmap.h
  │ │ │ └─    2.0 ms - platforms/math8.h
  │ │ │   └─    1.6 ms - platforms/shared/math8.h
  │ │ ├─    2.0 ms - fl/math/beat.h
  │ │ │ └─    1.0 ms - fl/math/trig8.h
  │ │ │   └─    1.0 ms - platforms/trig8.h
  │ │ │     └─    0.9 ms - platforms/shared/trig8.h
  │ │ └─    0.6 ms - fl/math/qfx.h
  │ └─    3.5 ms - crgb.hpp
  ├─   42.5 ms - colorutils.h
  │ └─   42.1 ms - fl/gfx/colorutils.h
  │   ├─    8.9 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
  │   └─    1.8 ms - fl/gfx/crgb16.h
  └─   27.9 ms - fastled_delay.h
    └─   27.6 ms - fl/system/delay.h
      └─   26.9 ms - platforms/delay.h
        └─   26.2 ms - platforms/delaycycles.h
          ├─   25.5 ms - platforms/delaycycles_generic.h
          └─    0.6 ms - platforms/shared/delay_cycles_generic.h
fl/stl/stdint.h (321.2ms)
  └─  218.7 ms - platforms/int.h
    ├─  218.0 ms - platforms/shared/int.h
    │ └─  217.9 ms - platforms/shared/int_linux.h
    └─    0.6 ms - platforms/arm/is_arm.h
fl/ui.h (136.7ms)
  ├─   78.2 ms - fl/stl/json.h
  │ └─   60.8 ms - fl/stl/json/types.h
  │   └─    7.6 ms - fl/stl/limits.h
  ├─   10.2 ms - fl/ui_impl.h
  │ └─    9.6 ms - platforms/ui_defs.h
  │   ├─    2.1 ms - platforms/shared/ui/json/audio.h
  │   │ └─    1.0 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.6 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/number_field.h
  │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │   └─    0.8 ms - platforms/shared/ui/json/description.h
  └─   10.1 ms - fl/asset.h
    └─    8.5 ms - fl/stl/url.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  2603.1 ms - Source: FastLED.h
  2.  2603.1 ms - Total Source: 
  3.  1457.9 ms - Source: fl/task/executor.h
  4.   990.6 ms - Source: fl/task/promise.h
  5.   927.2 ms - Source: fl/stl/function.h
  6.   859.5 ms - Total ParseClass: 
  7.   569.7 ms - Source: fl/fastled.h
  8.   543.0 ms - Source: fl/stl/shared_ptr.h
  9.   496.7 ms - Source: fl/stl/type_traits.h
 10.   453.5 ms - Source: fl/task/scheduler.h
 11.   443.8 ms - Source: fl/stl/singleton.h
 12.   443.1 ms - Source: fl/stl/thread_local.h
 13.   442.0 ms - Source: fl/stl/thread.h
 14.   441.9 ms - Source: platforms/thread.h
 15.   441.8 ms - Source: platforms/stub/thread_stub.h
 16.   441.8 ms - Source: platforms/stub/thread_stub_stl.h
 17.   435.1 ms - Source: thread
 18.   321.2 ms - Source: fl/stl/stdint.h
 19.   302.5 ms - Source: fl/stl/move.h
 20.   275.3 ms - Source: crgb.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (2603.1ms)
    - fl/task/executor.h (1457.9ms)
    - fl/task/promise.h (990.6ms)
    - fl/stl/function.h (927.2ms)
    - fl/fastled.h (569.7ms)
    - fl/stl/shared_ptr.h (543.0ms)
    - fl/stl/type_traits.h (496.7ms)
    - fl/task/scheduler.h (453.5ms)
    - fl/stl/singleton.h (443.8ms)
    - fl/stl/thread_local.h (443.1ms)

✓  Template instantiation time is acceptable (<15% of total)
✓  Lexing time is acceptable (<10% of total)

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (2603.1ms)
2. Consider optimizing fl/task/executor.h (1457.9ms)
3. Consider optimizing fl/task/promise.h (990.6ms)

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

@zackees
zackees merged commit e713d6f into master Apr 22, 2026
1 of 55 checks passed
@zackees
zackees deleted the issue-2372-colorfrompalette-hd branch August 21, 2026 19:16
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.

Meta: high-precision palette pipeline with CRGB16 support

1 participant