Skip to content

Fix Digispark follow-up review issues - #2391

Merged
zackees merged 1 commit into
masterfrom
fix-pr2386-followup
Apr 22, 2026
Merged

zackees merged 1 commit into
masterfrom
fix-pr2386-followup

Conversation

@zackees

@zackees zackees commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add explicit board_build.mcu = attiny85 metadata for digispark-tiny so MCU target filtering works
  • hoist the Arduino readLineNative output length guard so the non-ATtiny path cannot copy with a negative length
  • fix HD palette reader span construction by passing the static extent explicitly

Arduino C++ standard note

Arduino AVR Boards set compiler.cpp.flags to include -std=gnu++11, and the installed Digistump 1.7.x framework package has the same platform.txt setting. The generated PlatformIO project does not consume that platform.txt flag, so this keeps the explicit build_flags = -std=gnu++11 on digispark-tiny to match the Arduino stock compile mode.

Validation

  • uv run ci/ci-compile.py digispark-tiny Blink
  • uv run ci/ci-compile.py attiny85 Blink
  • uv run test.py --unit --quick --no-interactive --no-fingerprint span
  • uv run test.py --unit --quick --no-interactive --no-fingerprint colorutils
  • git diff --check

Summary by CodeRabbit

  • Bug Fixes
    • Fixed microcontroller target configuration for Digispark Tiny platform builds.
    • Enhanced palette color utilities with improved bounds checking for safer operations.
    • Added validation for serial input operations to prevent errors from invalid parameters.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 78c91e89-b133-4b22-964e-607e635b1c6b

📥 Commits

Reviewing files that changed from the base of the PR and between 3939abc and 6f64525.

📒 Files selected for processing (3)
  • ci/boards.py
  • src/fl/gfx/colorutils.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp

📝 Walkthrough

Walkthrough

Three files modified to address board configuration and palette span construction: PlatformIO DIGISPARK_TINY environment now explicitly specifies attiny85 MCU, palette-reader spans are constructed with explicit pointer and size parameters across multiple overloads, and serial read validation is reordered for early bounds checking.

Changes

Cohort / File(s) Summary
Board Configuration
ci/boards.py
Explicitly sets board_build.mcu to attiny85 for DIGISPARK_TINY PlatformIO environment to ensure correct MCU targeting instead of relying on defaults.
Palette Span Construction
src/fl/gfx/colorutils.cpp.hpp
Updated ColorFromPaletteHD overloads to construct RuntimeRGBPaletteReader and ProgmemRGBPaletteReader with explicit fl::span<..., Size>{pointer, Size} syntax across five palette types (CRGBPalette32, CRGBPalette16, TProgmemRGBPalette16, TProgmemRGBPalette32, CRGBPalette256).
Serial Read Validation
src/platforms/arduino/io_arduino.hpp
Reordered readLineNative() to check outLen <= 0 and return early before evaluating platform-specific TinyDebugSerial implementation path.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A span with size, a rabbit's delight,
MCU set, the config's just right,
Early returns keep the flow concise,
Palette readers now precise! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Fix Digispark follow-up review issues' is vague and does not clearly summarize the specific changes made. It references follow-up work without indicating what problems are being addressed or what aspects of the code are being fixed. Consider using a more descriptive title that specifies the key changes, such as 'Fix Digispark MCU metadata, palette span construction, and readLineNative bounds check' or similar.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

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

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

Top 5 Slowest Headers

  1. FastLED.h - 913.98ms
  2. fl/fastled.h - 391.84ms
  3. fl/task/executor.h - 298.31ms
  4. crgb.h - 223.74ms
  5. fl/gfx/crgb.h - 222.46ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (914.0ms)
⚠️ Header fl/fastled.h exceeds 150ms (391.8ms)
⚠️ Header fl/task/executor.h exceeds 150ms (298.3ms)
⚠️ Header crgb.h exceeds 150ms (223.7ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (222.5ms)
⚠️ Header fl/math/ease.h exceeds 150ms (217.5ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (215.2ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (157.5ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (147.7ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (147.0ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (145.8ms)
⚠️ Header platforms/thread.h exceeds 50ms (145.7ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (145.7ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (145.6ms)
⚠️ Header fl/ui.h exceeds 50ms (127.6ms)
⚠️ Header fl/task/promise.h exceeds 50ms (126.7ms)
⚠️ Header fl/stl/json.h exceeds 50ms (79.1ms)
⚠️ Header fl/stl/function.h exceeds 50ms (75.4ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (67.5ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (61.2ms)
⚠️ Header platforms.h exceeds 50ms (56.4ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (56.4ms)
⚠️ Template instantiation time is high (52.9%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    2,160.51 ms
Frontend Time:             18.32 ms (0.8%)
Backend Time:              171.81 ms (8.0%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    14502.96 ms (671.3%)
Templates                   669.01 ms ( 31.0%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1663.4 ms - FastLED.h (SLOW)
   886.8 ms - fl/task/executor.h (SLOW)
   600.5 ms - fl/task/scheduler.h (SLOW)
   590.4 ms - fl/stl/singleton.h (SLOW)
   589.6 ms - fl/stl/thread_local.h (SLOW)
   588.3 ms - fl/stl/thread.h (SLOW)
   588.2 ms - platforms/thread.h (SLOW)
   588.1 ms - platforms/stub/thread_stub.h (SLOW)
   588.0 ms - platforms/stub/thread_stub_stl.h (SLOW)
   531.6 ms - fl/fastled.h (SLOW)
   320.3 ms - crgb.h (SLOW)
   319.0 ms - fl/gfx/crgb.h (SLOW)
   314.0 ms - fl/math/ease.h (SLOW)
   311.5 ms - fl/math/fixed_point.h (SLOW)
   271.7 ms - fl/task/promise.h (SLOW)
   220.3 ms - fl/stl/function.h (SLOW)
   158.8 ms - fl/math/fixed_point/s4x12.h (SLOW)
   137.3 ms - fl/math/sin32.h (SLOW)
   133.9 ms - fl/math/simd.h (SLOW)
   133.3 ms - fl/math/simd/types.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1663.4ms)
  ├─  886.8 ms - fl/task/executor.h
  │ ├─  600.5 ms - fl/task/scheduler.h
  │ │ ├─  590.4 ms - fl/stl/singleton.h
  │ │ │ └─  589.6 ms - fl/stl/thread_local.h
  │ │ │   └─  588.3 ms - fl/stl/thread.h
  │ │ │     └─  588.2 ms - platforms/thread.h
  │ │ │       └─  588.1 ms - platforms/stub/thread_stub.h
  │ │ │         └─  588.0 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  581.3 ms - thread
  │ │ │             ├─  431.3 ms - std_thread.h
  │ │ │             ├─  131.9 ms - this_thread_sleep.h
  │ │ │             └─    2.6 ms - version.h
  │ │ └─    9.2 ms - fl/task/task.h
  │ │   └─    3.7 ms - fl/trace.h
  │ │     ├─    2.3 ms - fl/stl/chrono.h
  │ │     └─    1.1 ms - fl/stl/tuple.h
  │ ├─  271.7 ms - fl/task/promise.h
  │ │ ├─  220.3 ms - fl/stl/function.h
  │ │ │ ├─  101.3 ms - fl/stl/vector.h
  │ │ │ │ ├─   65.4 ms - fl/math/math.h
  │ │ │ │ │ └─   59.4 ms - fl/stl/undef.h
  │ │ │ │ │   └─   94.3 ms - stdlib.h
  │ │ │ │ │     ├─   48.9 ms - cstdlib
  │ │ │ │ │     │ └─   94.3 ms - stdlib.h
  │ │ │ │ │     │   ├─   48.9 ms - cstdlib
  │ │ │ │ │     │   ├─   11.5 ms - types.h
  │ │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │ │     ├─   11.5 ms - types.h
  │ │ │ │ │     │ ├─   11.5 ms - types.h
  │ │ │ │ │     │ │ ├─   11.5 ms - types.h
  │ │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    1.7 ms - select.h
  │ │ │ │ │     │ │ └─    1.7 ms - endian.h
  │ │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    1.7 ms - select.h
  │ │ │ │ │     │ └─    1.7 ms - endian.h
  │ │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ │ ├─   19.3 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   13.3 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    8.6 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    5.2 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ │ ├─   55.2 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   38.6 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   31.7 ms - fl/stl/move.h
  │ │ │ │ ├─   11.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   10.1 ms - platforms/atomic.h
  │ │ │ │ │   └─   10.1 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ │ ├─   47.7 ms - fl/stl/variant.h
  │ │ │ │ └─   45.6 ms - fl/stl/new.h
  │ │ │ │   └─   45.6 ms - platforms/new.h
  │ │ │ │     └─   45.6 ms - platforms/shared/new.h
  │ │ │ │       └─   35.6 ms - new
  │ │ │ │         ├─   16.8 ms - c++config.h
  │ │ │ │         │ └─    5.3 ms - os_defines.h
  │ │ │ │         └─    2.6 ms - version.h
  │ │ │ ├─    5.2 ms - fl/stl/compiler_control.h
  │ │ │ └─    5.0 ms - fl/stl/algorithm.h
  │ │ │   └─    2.1 ms - fl/math/random.h
  │ │ │     └─    1.0 ms - fl/math/random8.h
  │ │ └─   45.8 ms - fl/stl/string.h
  │ │   ├─   13.2 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.1 ms - fl/stl/not_null.h
  │ │   │ ├─    1.0 ms - fl/stl/iterator.h
  │ │   │ └─    0.5 ms - fl/stl/charconv.h
  │ │   ├─    9.1 ms - fl/stl/span.h
  │ │   │ └─    3.6 ms - fl/math/geometry.h
  │ │   ├─    5.9 ms - fl/stl/string_view.h
  │ │   └─    1.5 ms - fl/stl/optional.h
  │ ├─   12.2 ms - platforms/await.h
  │ │ └─   11.8 ms - platforms/coroutine_runtime.h
  │ │   └─   10.1 ms - fl/system/engine_events.h
  │ │     ├─    5.3 ms - fl/math/screenmap.h
  │ │     │ └─    3.9 ms - fl/stl/flat_map.h
  │ │     └─    3.2 ms - fl/math/xymap.h
  │ │       └─    0.8 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  531.6 ms - fl/fastled.h
  │ ├─  320.3 ms - crgb.h
  │ │ ├─  319.0 ms - fl/gfx/crgb.h
  │ │ │ └─  314.0 ms - fl/math/ease.h
  │ │ │   └─  311.5 ms - fl/math/fixed_point.h
  │ │ │     ├─  158.8 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  137.3 ms - fl/math/sin32.h
  │ │ │     │ │ └─  133.9 ms - fl/math/simd.h
  │ │ │     │ │   └─  133.3 ms - fl/math/simd/types.h
  │ │ │     │ │     └─  133.0 ms - platforms/simd.h
  │ │ │     │ ├─    1.2 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.4 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   18.9 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   18.8 ms - fl/math/fixed_point/s16x16.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   96.0 ms - platforms.h
  │ │ └─   96.0 ms - platforms/stub/fastled_stub.h
  │ │   ├─   57.2 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   57.2 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   50.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   48.0 ms - fl/id_tracker.h
  │ │   │   │   └─   47.0 ms - fl/stl/mutex.h
  │ │   │   │     └─   46.9 ms - platforms/mutex.h
  │ │   │   │       └─   46.8 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    6.4 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   38.6 ms - platforms/stub/clockless_stub.h
  │ │     └─   38.6 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   13.7 ms - fl/channels/data.h
  │ │       │ └─   10.2 ms - fl/channels/config.h
  │ │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.8 ms - fl/chipsets/spi.h
  │ │       ├─   13.6 ms - fl/system/log.h
  │ │       │ └─   13.1 ms - fl/stl/strstream.h
  │ │       ├─    2.5 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.1 ms - fl/channels/driver.h
  │ ├─   44.6 ms - colorutils.h
  │ │ └─   44.2 ms - fl/gfx/colorutils.h
  │ │   ├─    9.4 ms - fl/gfx/blur.h
  │ │   │ └─    4.9 ms - fl/gfx/canvas.h
  │ │   │   └─    3.0 ms - fl/math/alpha.h
  │ │   ├─    3.3 ms - fl/gfx/fill.h
  │ │   └─    1.9 ms - fl/gfx/crgb16.h
  │ ├─   24.7 ms - pixel_controller.h
  │ │ ├─   17.9 ms - pixel_iterator.h
  │ │ │ └─   17.7 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    5.2 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    4.0 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    3.3 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.7 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.7 ms - rgbw.h
  │ │   └─    2.5 ms - fl/gfx/rgbw.h
  │ └─   23.2 ms - pixeltypes.h
  │   ├─   19.5 ms - lib8tion.h
  │   │ ├─   10.1 ms - fl/math/math8.h
  │   │ │ ├─    5.4 ms - fl/math/intmap.h
  │   │ │ │ └─    4.1 ms - platforms/intmap.h
  │   │ │ ├─    2.5 ms - fl/math/scale8.h
  │   │ │ │ └─    2.4 ms - platforms/scale8.h
  │   │ │ │   └─    1.0 ms - platforms/shared/scale8.h
  │   │ │ └─    2.1 ms - platforms/math8.h
  │   │ │   └─    1.7 ms - platforms/shared/math8.h
  │   │ ├─    2.1 ms - fl/math/beat.h
  │   │ │ └─    1.1 ms - fl/math/trig8.h
  │   │ │   └─    1.1 ms - platforms/trig8.h
  │   │ │     └─    1.0 ms - platforms/shared/trig8.h
  │   │ ├─    0.5 ms - fl/math/qfx.h
  │   │ └─    0.5 ms - fl/math/time_functions.h
  │   └─    3.3 ms - crgb.hpp
  ├─  130.5 ms - fl/ui.h
  │ ├─   81.4 ms - fl/stl/json.h
  │ │ └─   63.4 ms - fl/stl/json/types.h
  │ │   └─    7.7 ms - fl/stl/limits.h
  │ ├─   10.8 ms - fl/ui_impl.h
  │ │ └─   10.2 ms - platforms/ui_defs.h
  │ │   ├─    2.2 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    1.1 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.8 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/number_field.h
  │ │   └─    0.9 ms - platforms/shared/ui/json/help.h
  │ └─   10.5 ms - fl/asset.h
  │   └─    8.8 ms - fl/stl/url.h
  ├─   30.9 ms - chipsets.h
  │ ├─   12.3 ms - fl/chipsets/ucs7604.h
  │ │ └─    9.4 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    7.6 ms - fl/chipsets/apa102.h
  │ ├─    1.9 ms - fl/chipsets/lpd880x.h
  │ ├─    0.9 ms - fl/chipsets/p9813.h
  │ └─    0.9 ms - fl/chipsets/encoders/ws2816.h
  └─   24.3 ms - fl/audio/audio_processor.h
    ├─    6.0 ms - fl/audio/audio_context.h
    │ └─    1.7 ms - fl/audio/fft/fft.h
    ├─    2.2 ms - fl/audio/detector/vibe.h
    └─    1.4 ms - fl/audio/signal_conditioner.h
fl/task/executor.h (886.8ms)
  ├─  600.5 ms - fl/task/scheduler.h
  │ ├─  590.4 ms - fl/stl/singleton.h
  │ │ └─  589.6 ms - fl/stl/thread_local.h
  │ │   └─  588.3 ms - fl/stl/thread.h
  │ │     └─  588.2 ms - platforms/thread.h
  │ │       └─  588.1 ms - platforms/stub/thread_stub.h
  │ │         └─  588.0 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  581.3 ms - thread
  │ │             ├─  431.3 ms - std_thread.h
  │ │             │ ├─  121.1 ms - tuple
  │ │             │ ├─   33.4 ms - iosfwd
  │ │             │ ├─   23.5 ms - refwrap.h
  │ │             │ ├─   13.7 ms - gthr.h
  │ │             │ └─    6.8 ms - unique_ptr.h
  │ │             ├─  131.9 ms - this_thread_sleep.h
  │ │             │ ├─  116.7 ms - chrono.h
  │ │             │ └─    3.8 ms - cerrno
  │ │             └─    2.6 ms - version.h
  │ └─    9.2 ms - fl/task/task.h
  │   └─    3.7 ms - fl/trace.h
  │     ├─    2.3 ms - fl/stl/chrono.h
  │     └─    1.1 ms - fl/stl/tuple.h
  ├─  271.7 ms - fl/task/promise.h
  │ ├─  220.3 ms - fl/stl/function.h
  │ │ ├─  101.3 ms - fl/stl/vector.h
  │ │ │ ├─   65.4 ms - fl/math/math.h
  │ │ │ │ └─   59.4 ms - fl/stl/undef.h
  │ │ │ │   └─   94.3 ms - stdlib.h
  │ │ │ │     ├─   48.9 ms - cstdlib
  │ │ │ │     │ └─   94.3 ms - stdlib.h
  │ │ │ │     │   ├─   48.9 ms - cstdlib
  │ │ │ │     │   │ └─   94.3 ms - stdlib.h
  │ │ │ │     │   ├─   11.5 ms - types.h
  │ │ │ │     │   │ ├─   11.5 ms - types.h
  │ │ │ │     │   │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    1.7 ms - select.h
  │ │ │ │     │   │ └─    1.7 ms - endian.h
  │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │     ├─   11.5 ms - types.h
  │ │ │ │     │ ├─   11.5 ms - types.h
  │ │ │ │     │ │ ├─   11.5 ms - types.h
  │ │ │ │     │ │ │ ├─   11.5 ms - types.h
  │ │ │ │     │ │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.7 ms - select.h
  │ │ │ │     │ │ │ └─    1.7 ms - endian.h
  │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    1.7 ms - select.h
  │ │ │ │     │ │ └─    1.7 ms - endian.h
  │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │     │ ├─    1.7 ms - select.h
  │ │ │ │     │ └─    1.7 ms - endian.h
  │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ ├─   19.3 ms - fl/stl/allocator.h
  │ │ │ │ └─   13.3 ms - fl/stl/bitset.h
  │ │ │ │   └─    8.6 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    5.2 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ ├─   55.2 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   38.6 ms - fl/stl/type_traits.h
  │ │ │ │ └─   31.7 ms - fl/stl/move.h
  │ │ │ ├─   11.3 ms - fl/stl/atomic.h
  │ │ │ │ └─   10.1 ms - platforms/atomic.h
  │ │ │ │   └─   10.1 ms - platforms/shared/atomic.h
  │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ ├─   47.7 ms - fl/stl/variant.h
  │ │ │ └─   45.6 ms - fl/stl/new.h
  │ │ │   └─   45.6 ms - platforms/new.h
  │ │ │     └─   45.6 ms - platforms/shared/new.h
  │ │ │       └─   35.6 ms - new
  │ │ │         ├─   16.8 ms - c++config.h
  │ │ │         │ └─    5.3 ms - os_defines.h
  │ │ │         │   └─    4.8 ms - features.h
  │ │ │         └─    2.6 ms - version.h
  │ │ ├─    5.2 ms - fl/stl/compiler_control.h
  │ │ └─    5.0 ms - fl/stl/algorithm.h
  │ │   └─    2.1 ms - fl/math/random.h
  │ │     └─    1.0 ms - fl/math/random8.h
  │ └─   45.8 ms - fl/stl/string.h
  │   ├─   13.2 ms - fl/stl/basic_string.h
  │   │ ├─    1.1 ms - fl/stl/not_null.h
  │   │ ├─    1.0 ms - fl/stl/iterator.h
  │   │ └─    0.5 ms - fl/stl/charconv.h
  │   ├─    9.1 ms - fl/stl/span.h
  │   │ └─    3.6 ms - fl/math/geometry.h
  │   ├─    5.9 ms - fl/stl/string_view.h
  │   └─    1.5 ms - fl/stl/optional.h
  ├─   12.2 ms - platforms/await.h
  │ └─   11.8 ms - platforms/coroutine_runtime.h
  │   └─   10.1 ms - fl/system/engine_events.h
  │     ├─    5.3 ms - fl/math/screenmap.h
  │     │ └─    3.9 ms - fl/stl/flat_map.h
  │     └─    3.2 ms - fl/math/xymap.h
  │       └─    0.8 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/fastled.h (531.6ms)
  ├─  320.3 ms - crgb.h
  │ ├─  319.0 ms - fl/gfx/crgb.h
  │ │ └─  314.0 ms - fl/math/ease.h
  │ │   └─  311.5 ms - fl/math/fixed_point.h
  │ │     ├─  158.8 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  137.3 ms - fl/math/sin32.h
  │ │     │ │ └─  133.9 ms - fl/math/simd.h
  │ │     │ │   └─  133.3 ms - fl/math/simd/types.h
  │ │     │ │     └─  133.0 ms - platforms/simd.h
  │ │     │ │       └─  132.9 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.2 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   19.4 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   18.9 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   18.8 ms - fl/math/fixed_point/s16x16.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   96.0 ms - platforms.h
  │ └─   96.0 ms - platforms/stub/fastled_stub.h
  │   ├─   57.2 ms - platforms/stub/fastspi_stub.h
  │   │ └─   57.2 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   50.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   48.0 ms - fl/id_tracker.h
  │   │   │   └─   47.0 ms - fl/stl/mutex.h
  │   │   │     └─   46.9 ms - platforms/mutex.h
  │   │   │       └─   46.8 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   46.7 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    6.4 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   38.6 ms - platforms/stub/clockless_stub.h
  │     └─   38.6 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   13.7 ms - fl/channels/data.h
  │       │ └─   10.2 ms - fl/channels/config.h
  │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │       │   └─    1.8 ms - fl/chipsets/spi.h
  │       ├─   13.6 ms - fl/system/log.h
  │       │ └─   13.1 ms - fl/stl/strstream.h
  │       ├─    2.5 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.1 ms - fl/channels/driver.h
  ├─   44.6 ms - colorutils.h
  │ └─   44.2 ms - fl/gfx/colorutils.h
  │   ├─    9.4 ms - fl/gfx/blur.h
  │   │ └─    4.9 ms - fl/gfx/canvas.h
  │   │   └─    3.0 ms - fl/math/alpha.h
  │   ├─    3.3 ms - fl/gfx/fill.h
  │   └─    1.9 ms - fl/gfx/crgb16.h
  ├─   24.7 ms - pixel_controller.h
  │ ├─   17.9 ms - pixel_iterator.h
  │ │ └─   17.7 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    5.2 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    4.0 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    3.3 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.7 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.7 ms - rgbw.h
  │   └─    2.5 ms - fl/gfx/rgbw.h
  └─   23.2 ms - pixeltypes.h
    ├─   19.5 ms - lib8tion.h
    │ ├─   10.1 ms - fl/math/math8.h
    │ │ ├─    5.4 ms - fl/math/intmap.h
    │ │ │ └─    4.1 ms - platforms/intmap.h
    │ │ ├─    2.5 ms - fl/math/scale8.h
    │ │ │ └─    2.4 ms - platforms/scale8.h
    │ │ │   └─    1.0 ms - platforms/shared/scale8.h
    │ │ └─    2.1 ms - platforms/math8.h
    │ │   └─    1.7 ms - platforms/shared/math8.h
    │ ├─    2.1 ms - fl/math/beat.h
    │ │ └─    1.1 ms - fl/math/trig8.h
    │ │   └─    1.1 ms - platforms/trig8.h
    │ │     └─    1.0 ms - platforms/shared/trig8.h
    │ ├─    0.5 ms - fl/math/qfx.h
    │ └─    0.5 ms - fl/math/time_functions.h
    └─    3.3 ms - crgb.hpp
fl/ui.h (130.5ms)
  ├─   81.4 ms - fl/stl/json.h
  │ └─   63.4 ms - fl/stl/json/types.h
  │   └─    7.7 ms - fl/stl/limits.h
  ├─   10.8 ms - fl/ui_impl.h
  │ └─   10.2 ms - platforms/ui_defs.h
  │   ├─    2.2 ms - platforms/shared/ui/json/audio.h
  │   │ └─    1.1 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.8 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │   ├─    0.9 ms - platforms/shared/ui/json/number_field.h
  │   └─    0.9 ms - platforms/shared/ui/json/help.h
  └─   10.5 ms - fl/asset.h
    └─    8.8 ms - fl/stl/url.h
chipsets.h (30.9ms)
  ├─   12.3 ms - fl/chipsets/ucs7604.h
  │ └─    9.4 ms - fl/chipsets/encoders/ucs7604.h
  ├─    7.6 ms - fl/chipsets/apa102.h
  ├─    1.9 ms - fl/chipsets/lpd880x.h
  ├─    0.9 ms - fl/chipsets/p9813.h
  └─    0.9 ms - fl/chipsets/encoders/ws2816.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1663.4 ms - Source: FastLED.h
  2.  1663.4 ms - Total Source: 
  3.   886.8 ms - Source: fl/task/executor.h
  4.   692.1 ms - Total ParseClass: 
  5.   600.5 ms - Source: fl/task/scheduler.h
  6.   590.4 ms - Source: fl/stl/singleton.h
  7.   589.6 ms - Source: fl/stl/thread_local.h
  8.   588.3 ms - Source: fl/stl/thread.h
  9.   588.2 ms - Source: platforms/thread.h
 10.   588.1 ms - Source: platforms/stub/thread_stub.h
 11.   588.0 ms - Source: platforms/stub/thread_stub_stl.h
 12.   581.3 ms - Source: thread
 13.   531.6 ms - Source: fl/fastled.h
 14.   431.3 ms - Source: std_thread.h
 15.   320.3 ms - Source: crgb.h
 16.   319.0 ms - Source: fl/gfx/crgb.h
 17.   314.0 ms - Source: fl/math/ease.h
 18.   311.5 ms - Source: fl/math/fixed_point.h
 19.   271.7 ms - Source: fl/task/promise.h
 20.   232.2 ms - Total InstantiateFunction: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1663.4ms)
    - fl/task/executor.h (886.8ms)
    - fl/task/scheduler.h (600.5ms)
    - fl/stl/singleton.h (590.4ms)
    - fl/stl/thread_local.h (589.6ms)
    - fl/stl/thread.h (588.3ms)
    - platforms/thread.h (588.2ms)
    - platforms/stub/thread_stub.h (588.1ms)
    - platforms/stub/thread_stub_stl.h (588.0ms)
    - fl/fastled.h (531.6ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1663.4ms)
2. Consider optimizing fl/task/executor.h (886.8ms)
3. Consider optimizing fl/task/scheduler.h (600.5ms)

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

@zackees
zackees merged commit b4c18e4 into master Apr 22, 2026
66 of 80 checks passed
@zackees
zackees deleted the fix-pr2386-followup branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant