Skip to content

Fix Digispark ATtiny85 Blink build - #2386

Merged
zackees merged 1 commit into
masterfrom
digispark-tiny-build-fix
Apr 22, 2026
Merged

zackees merged 1 commit into
masterfrom
digispark-tiny-build-fix

Conversation

@zackees

@zackees zackees commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • fix C++98/old AVR preprocessing issues hit by Digispark builds (static_assert fallback and KISS FFT fixed-point includes)
  • replace the fallback static_assert dispatcher with one variadic macro backed by a template, with template-comma expressions parenthesized at source call sites
  • add Digispark-safe handling for older Digistump/Adafruit APIs
  • add digispark-tiny to the board registry for targeted/local compile coverage without adding a new GitHub Actions workflow
  • pin the PlatformIO Digistump core/toolchain packages that are available ([email protected], [email protected])
  • clean palette lint fallout and keep the palette tests mapped to src/fl/gfx/colorutils.h

Fixes #2379.

Follow-up: #2387 tracks whether fbuild should support Digistump/Digispark's dtiny AVR core out of the box. Current result: fbuild resolves the environment in dry-run, but actual compile fails with no AVR framework registered for core 'dtiny', so this PR keeps digispark-tiny on the PlatformIO path.

Note: PlatformIO does not publish the exact Arduino IDE issue environment (Digistump AVR Boards 1.6.7 with avr-g++ 4.8.1), so this PR pins the closest available PlatformIO Digistump packages and leaves exact legacy fbuild/package support to #2387.

Validation

  • forced the C++98 static_assert fallback branch through avr-g++ with template-comma expressions and a pre-existing static_assert macro
  • uv run ci/ci-compile.py digispark-tiny Blink
  • uv run ci/ci-compile.py attiny85 Blink
  • & 'C:\Program Files\Git\bin\bash.exe' lint

Summary by CodeRabbit

  • New Features

    • Added support for the Digispark Tiny board in platform configurations.
  • Refactor

    • Improved ATTiny serial input handling with safer buffering and timeout behavior.
    • Made color palette comparison and palette lookup more robust and efficient.
    • Tightened compiler-compatibility and fallthrough annotation handling.
    • Various compile-time assertion/formatting modernizations and small cleanup.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a Digispark ATtiny85 board entry and marks it tiny-memory; replaces the previous two-argument static_assert macro with a variadic implementation; adjusts palette span construction and palette equality; tightens Adafruit include selection; adds ATTiny-specific Serial readLine; narrows FL_FALLTHROUGH gating; removes an unconditional POSIX include.

Changes

Cohort / File(s) Summary
Board configuration
ci/boards.py
Adds DIGISPARK_TINY Board definition and classifies digispark-tiny as a tiny-memory board.
C++ compatibility & asserts
src/cpp_compat.h
Replaces the old static_assert macro with a variadic/arity-dispatch implementation using helper templates/typedef tricks; undefines existing static_assert before redefinition.
Palette code
src/fl/gfx/colorutils.cpp.hpp, src/fl/gfx/colorutils.h
Constructs palette spans from explicit base pointers (&pal.entries[0] / &pal[0]); TColorPalette::operator== now checks pointer equality first then uses fl::memcmp for buffer compare.
Platform I/O & includes
src/platforms/adafruit/clockless.cpp.hpp, src/platforms/arduino/io_arduino.hpp
Guards Adafruit include with FL_HAS_INCLUDE and simplifies fallback; implements ATTiny-specific readLineNative that reads from Serial.available() with timeout and NUL-termination.
ATTiny clockless & fallthrough removal
src/platforms/avr/attiny/clockless_blocking.h, src/platforms/avr/attiny/clockless_blocking_controller.h
Removes a duplicate include and deletes the FL_FALLTHROUGH macro definition usages while preserving /* fall through */ comments.
Compiler control tightening
src/fl/stl/compiler_control.h
Restricts FL_FALLTHROUGH attribute to Clang or GCC >= 7; older GCC/non-clang compilers fall back to a comment/no-op.
Third-party header cleanup
src/third_party/cq_kernel/kiss_fft.h
Removes unconditional <sys/types.h> inclusion from the FIXED_POINT path.
Parenthesization / formatting updates
multiple src/fl/... files (src/fl/stl/function.h, src/fl/stl/pair.h, src/fl/stl/type_traits.h, src/fl/math/screenmap.cpp.hpp, src/platforms/compile_test.cpp.hpp, src/platforms/intmap.h, etc.)
Parenthesized boolean expressions inside static_asserts and minor formatting-only changes across several headers/source snippets.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related issues

Possibly related PRs

Poem

🐰
I hopped through headers, pins, and flags,
Tucked tiny boards beneath my rags.
Macros bowed and palettes gleamed,
Serial whispers softly streamed.
A rabbit's patch — compiled and tagged!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 37.50% 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 pull request title 'Fix Digispark ATtiny85 Blink build' accurately summarizes the main objective: fixing Digispark ATtiny85 compilation issues. This is the primary change across the entire changeset.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch digispark-tiny-build-fix

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.

@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: 5

🧹 Nitpick comments (1)
src/platforms/avr/attiny/clockless_blocking.h (1)

15-16: Duplicate include.

fl/stl/compiler_control.h is included twice back-to-back. Drop the redundant line.

Proposed fix
 `#include` "fl/stl/compiler_control.h"
-#include "fl/stl/compiler_control.h"
 `#include` "fl/system/fastpin.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/platforms/avr/attiny/clockless_blocking.h` around lines 15 - 16, Remove
the duplicate include of "fl/stl/compiler_control.h" in clockless_blocking.h:
keep a single `#include` "fl/stl/compiler_control.h" and delete the redundant
consecutive include so the header is only included once.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/build_digispark_tiny.yml:
- Around line 11-20: The workflow's paths filter is missing third_party/** so
changes under third_party (e.g., third_party/cq_kernel/kiss_fft.h) won't trigger
the job; update the paths list in the .github/workflows/build_digispark_tiny.yml
workflow (the paths: array entries) to include 'third_party/**' in both
occurrences (the first paths block shown and the second block around lines
24-33) so edits under third_party will run the workflow.

In `@ci/boards.py`:
- Around line 1066-1071: The DIGISPARK_TINY Board lacks platform_packages
pinning so CI may use newer toolchains; update the DIGISPARK_TINY Board
definition to include a platform_packages entry that pins the Digistump core and
AVR toolchain to the legacy versions cited (e.g., Digistump core ~1.6.7 and
toolchain-atmelavr matching avr-gcc 4.8.1), referencing the DIGISPARK_TINY Board
symbol and Board class to locate the definition; alternatively, if you prefer
not to pin here, add explicit assertions in the Digispark CI workflow to check
installed platform/package versions and fail the job if the legacy versions are
not present.

In `@src/cpp_compat.h`:
- Line 16: The fallback macro redefinition of static_assert must be guarded to
avoid "macro redefined" warnings; update the code around the static_assert
definition to check for an existing macro (use `#ifdef` or `#if`
defined(static_assert)) and `#undef` it before providing your fallback, then
proceed to define static_assert as intended so that any prior toolchain-provided
macro is safely cleared first.

In `@src/platforms/avr/attiny/clockless_blocking.h`:
- Around line 489-492: Do not override the existing FastLED compiler macro;
remove the unconditional `#undef FL_FALLTHROUGH` and the GCC-only `#define
FL_FALLTHROUGH __attribute__ ((fallthrough));` in `clockless_blocking.h` and
instead rely on the existing definition from `src/fl/stl/compiler_control.h` (or
include that header if not already included). Specifically, restore use of the
FastLED `FL_FALLTHROUGH` macro (which handles compiler/version differences),
remove the trailing semicolon from any attribute-style defines, and apply the
same fix in `clockless_blocking_controller.h` where `FL_FALLTHROUGH` is
similarly redefined.

---

Nitpick comments:
In `@src/platforms/avr/attiny/clockless_blocking.h`:
- Around line 15-16: Remove the duplicate include of "fl/stl/compiler_control.h"
in clockless_blocking.h: keep a single `#include` "fl/stl/compiler_control.h" and
delete the redundant consecutive include so the header is only included once.
🪄 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: 144120d2-377a-401e-8bf2-100474949ff3

📥 Commits

Reviewing files that changed from the base of the PR and between 18d6481 and 7f4fd1c.

📒 Files selected for processing (10)
  • .github/workflows/build_digispark_tiny.yml
  • ci/boards.py
  • src/cpp_compat.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/third_party/cq_kernel/kiss_fft.h
  • tests/fl/gfx/colorutils.cpp
💤 Files with no reviewable changes (1)
  • src/third_party/cq_kernel/kiss_fft.h

Comment thread src/cpp_compat.h Resolved
Comment thread src/platforms/arduino/io_arduino.hpp Resolved
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1149.32ms

Top 5 Slowest Headers

  1. FastLED.h - 878.57ms
  2. fl/fastled.h - 382.53ms
  3. fl/task/executor.h - 285.56ms
  4. crgb.h - 215.10ms
  5. fl/gfx/crgb.h - 213.84ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (878.6ms)
⚠️ Header fl/fastled.h exceeds 150ms (382.5ms)
⚠️ Header fl/task/executor.h exceeds 150ms (285.6ms)
⚠️ Header crgb.h exceeds 150ms (215.1ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (213.8ms)
⚠️ Header fl/math/ease.h exceeds 150ms (209.0ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (206.6ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (151.2ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (141.8ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (141.1ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (139.9ms)
⚠️ Header platforms/thread.h exceeds 50ms (139.8ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (139.7ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (139.7ms)
⚠️ Header fl/task/promise.h exceeds 50ms (120.8ms)
⚠️ Header fl/ui.h exceeds 50ms (119.7ms)
⚠️ Header fl/stl/json.h exceeds 50ms (74.9ms)
⚠️ Header fl/stl/function.h exceeds 50ms (71.8ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (61.9ms)
⚠️ Header platforms.h exceeds 50ms (60.0ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (59.9ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (58.0ms)
⚠️ Template instantiation time is high (51.9%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,746.33 ms
Frontend Time:             17.34 ms (1.0%)
Backend Time:              138.19 ms (7.9%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    10837.78 ms (620.6%)
Templates                   589.64 ms ( 33.8%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1333.7 ms - FastLED.h (SLOW)
   635.7 ms - fl/task/executor.h (SLOW)
   459.8 ms - fl/fastled.h (SLOW)
   366.3 ms - fl/task/scheduler.h (SLOW)
   356.8 ms - fl/stl/singleton.h (SLOW)
   356.1 ms - fl/stl/thread_local.h (SLOW)
   354.9 ms - fl/stl/thread.h (SLOW)
   354.8 ms - platforms/thread.h (SLOW)
   354.8 ms - platforms/stub/thread_stub.h (SLOW)
   354.7 ms - platforms/stub/thread_stub_stl.h (SLOW)
   270.7 ms - crgb.h (SLOW)
   269.5 ms - fl/gfx/crgb.h (SLOW)
   264.6 ms - fl/math/ease.h (SLOW)
   262.2 ms - fl/math/fixed_point.h (SLOW)
   255.6 ms - fl/task/promise.h (SLOW)
   207.0 ms - fl/stl/function.h (SLOW)
   119.7 ms - fl/ui.h (SLOW)
   106.3 ms - fl/stl/vector.h (SLOW)
    96.2 ms - fl/math/fixed_point/s4x12.h (SLOW)
    79.9 ms - platforms.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1333.7ms)
  ├─  635.7 ms - fl/task/executor.h
  │ ├─  366.3 ms - fl/task/scheduler.h
  │ │ ├─  356.8 ms - fl/stl/singleton.h
  │ │ │ └─  356.1 ms - fl/stl/thread_local.h
  │ │ │   └─  354.9 ms - fl/stl/thread.h
  │ │ │     └─  354.8 ms - platforms/thread.h
  │ │ │       └─  354.8 ms - platforms/stub/thread_stub.h
  │ │ │         └─  354.7 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  349.7 ms - thread
  │ │ │             ├─  198.8 ms - std_thread.h
  │ │ │             └─  135.3 ms - this_thread_sleep.h
  │ │ └─    8.7 ms - fl/task/task.h
  │ │   └─    3.6 ms - fl/trace.h
  │ │     ├─    2.2 ms - fl/stl/chrono.h
  │ │     └─    0.9 ms - fl/stl/tuple.h
  │ ├─  255.6 ms - fl/task/promise.h
  │ │ ├─  207.0 ms - fl/stl/function.h
  │ │ │ ├─  106.3 ms - fl/stl/vector.h
  │ │ │ │ ├─   72.3 ms - fl/math/math.h
  │ │ │ │ │ └─   66.8 ms - fl/stl/undef.h
  │ │ │ │ │   └─   89.8 ms - stdlib.h
  │ │ │ │ │     ├─   41.7 ms - cstdlib
  │ │ │ │ │     │ └─   89.8 ms - stdlib.h
  │ │ │ │ │     │   ├─   41.7 ms - cstdlib
  │ │ │ │ │     │   ├─   15.1 ms - types.h
  │ │ │ │ │     │   ├─    0.6 ms - floatn.h
  │ │ │ │ │     │   └─    0.6 ms - locale_t.h
  │ │ │ │ │     ├─   15.1 ms - types.h
  │ │ │ │ │     │ ├─   15.1 ms - types.h
  │ │ │ │ │     │ │ ├─   15.1 ms - types.h
  │ │ │ │ │     │ │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    2.4 ms - select.h
  │ │ │ │ │     │ │ └─    2.1 ms - endian.h
  │ │ │ │ │     │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    2.4 ms - select.h
  │ │ │ │ │     │ │ └─    0.5 ms - sigset_t.h
  │ │ │ │ │     │ └─    2.1 ms - endian.h
  │ │ │ │ │     ├─    0.6 ms - floatn.h
  │ │ │ │ │     └─    0.6 ms - locale_t.h
  │ │ │ │ ├─   18.4 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   12.6 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    8.1 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.2 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    4.9 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.7 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ │ ├─   45.1 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   25.9 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   19.5 ms - fl/stl/move.h
  │ │ │ │ ├─   14.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   13.2 ms - platforms/atomic.h
  │ │ │ │ │   └─   13.2 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ │ ├─   40.1 ms - fl/stl/variant.h
  │ │ │ │ └─   38.4 ms - fl/stl/new.h
  │ │ │ │   └─   38.3 ms - platforms/new.h
  │ │ │ │     └─   38.3 ms - platforms/shared/new.h
  │ │ │ │       └─   30.5 ms - new
  │ │ │ │         ├─   15.6 ms - c++config.h
  │ │ │ │         │ └─    6.3 ms - os_defines.h
  │ │ │ │         └─    1.1 ms - version.h
  │ │ │ ├─    5.3 ms - fl/stl/compiler_control.h
  │ │ │ └─    4.7 ms - fl/stl/algorithm.h
  │ │ │   └─    2.0 ms - fl/math/random.h
  │ │ │     └─    0.9 ms - fl/math/random8.h
  │ │ └─   43.5 ms - fl/stl/string.h
  │ │   ├─   12.6 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
  │ │   ├─    8.6 ms - fl/stl/span.h
  │ │   │ └─    3.3 ms - fl/math/geometry.h
  │ │   ├─    5.6 ms - fl/stl/string_view.h
  │ │   └─    1.5 ms - fl/stl/optional.h
  │ ├─   11.5 ms - platforms/await.h
  │ │ └─   11.1 ms - platforms/coroutine_runtime.h
  │ │   └─    9.5 ms - fl/system/engine_events.h
  │ │     ├─    4.9 ms - fl/math/screenmap.h
  │ │     │ └─    3.6 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
  ├─  459.8 ms - fl/fastled.h
  │ ├─  270.7 ms - crgb.h
  │ │ ├─  269.5 ms - fl/gfx/crgb.h
  │ │ │ └─  264.6 ms - fl/math/ease.h
  │ │ │   └─  262.2 ms - fl/math/fixed_point.h
  │ │ │     ├─   96.2 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   74.6 ms - fl/math/sin32.h
  │ │ │     │ │ └─   71.1 ms - fl/math/simd.h
  │ │ │     │ │   └─   70.5 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   70.2 ms - platforms/simd.h
  │ │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   27.0 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   23.4 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   21.6 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   18.8 ms - fl/math/fixed_point/s16x16.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   79.9 ms - platforms.h
  │ │ └─   79.8 ms - platforms/stub/fastled_stub.h
  │ │   ├─   44.0 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   44.0 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   37.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   35.8 ms - fl/id_tracker.h
  │ │   │   │   └─   34.9 ms - fl/stl/mutex.h
  │ │   │   │     └─   34.9 ms - platforms/mutex.h
  │ │   │   │       └─   34.7 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.7 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   35.7 ms - platforms/stub/clockless_stub.h
  │ │     └─   35.7 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   12.8 ms - fl/system/log.h
  │ │       │ └─   12.3 ms - fl/stl/strstream.h
  │ │       ├─   12.6 ms - fl/channels/data.h
  │ │       │ └─    9.4 ms - fl/channels/config.h
  │ │       │   ├─    2.1 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.5 ms - fl/stl/weak_ptr.h
  │ │       └─    1.0 ms - fl/channels/driver.h
  │ ├─   41.4 ms - colorutils.h
  │ │ └─   41.1 ms - fl/gfx/colorutils.h
  │ │   ├─    8.6 ms - fl/gfx/blur.h
  │ │   │ └─    4.5 ms - fl/gfx/canvas.h
  │ │   │   └─    2.7 ms - fl/math/alpha.h
  │ │   ├─    3.1 ms - fl/gfx/fill.h
  │ │   └─    1.8 ms - fl/gfx/crgb16.h
  │ ├─   23.9 ms - pixel_controller.h
  │ │ ├─   17.5 ms - pixel_iterator.h
  │ │ │ └─   17.4 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    4.9 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    3.8 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    3.2 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    1.4 ms - fl/chipsets/encoders/hd108.h
  │ │ │   └─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │ └─    2.5 ms - rgbw.h
  │ │   └─    2.3 ms - fl/gfx/rgbw.h
  │ └─   22.9 ms - pixeltypes.h
  │   ├─   19.3 ms - lib8tion.h
  │   │ ├─   10.0 ms - fl/math/math8.h
  │   │ │ ├─    5.5 ms - fl/math/intmap.h
  │   │ │ │ └─    4.1 ms - platforms/intmap.h
  │   │ │ ├─    2.4 ms - fl/math/scale8.h
  │   │ │ │ └─    2.4 ms - platforms/scale8.h
  │   │ │ │   └─    1.0 ms - platforms/shared/scale8.h
  │   │ │ └─    2.0 ms - platforms/math8.h
  │   │ │   └─    1.6 ms - platforms/shared/math8.h
  │   │ └─    2.2 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
  │   └─    3.2 ms - crgb.hpp
  ├─  119.7 ms - fl/ui.h
  │ ├─   75.0 ms - fl/stl/json.h
  │ │ └─   58.0 ms - fl/stl/json/types.h
  │ │   └─    7.4 ms - fl/stl/limits.h
  │ ├─    9.9 ms - fl/ui_impl.h
  │ │ └─    9.3 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/description.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ └─    9.8 ms - fl/asset.h
  │   └─    8.2 ms - fl/stl/url.h
  ├─   27.7 ms - chipsets.h
  │ ├─   11.2 ms - fl/chipsets/ucs7604.h
  │ │ └─    8.5 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    6.7 ms - fl/chipsets/apa102.h
  │ ├─    1.7 ms - fl/chipsets/lpd880x.h
  │ ├─    0.8 ms - fl/chipsets/p9813.h
  │ └─    0.8 ms - fl/chipsets/ws2801.h
  └─   22.3 ms - fl/audio/audio_processor.h
    ├─    5.6 ms - fl/audio/audio_context.h
    │ └─    1.6 ms - fl/audio/fft/fft.h
    ├─    2.0 ms - fl/audio/detector/vibe.h
    └─    1.2 ms - fl/audio/signal_conditioner.h
fl/task/executor.h (635.7ms)
  ├─  366.3 ms - fl/task/scheduler.h
  │ ├─  356.8 ms - fl/stl/singleton.h
  │ │ └─  356.1 ms - fl/stl/thread_local.h
  │ │   └─  354.9 ms - fl/stl/thread.h
  │ │     └─  354.8 ms - platforms/thread.h
  │ │       └─  354.8 ms - platforms/stub/thread_stub.h
  │ │         └─  354.7 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  349.7 ms - thread
  │ │             ├─  198.8 ms - std_thread.h
  │ │             │ ├─   80.3 ms - tuple
  │ │             │ ├─   29.3 ms - refwrap.h
  │ │             │ ├─   25.8 ms - iosfwd
  │ │             │ ├─   13.9 ms - gthr.h
  │ │             │ └─    6.7 ms - unique_ptr.h
  │ │             └─  135.3 ms - this_thread_sleep.h
  │ │               ├─  122.3 ms - chrono.h
  │ │               └─    5.0 ms - cerrno
  │ └─    8.7 ms - fl/task/task.h
  │   └─    3.6 ms - fl/trace.h
  │     ├─    2.2 ms - fl/stl/chrono.h
  │     └─    0.9 ms - fl/stl/tuple.h
  ├─  255.6 ms - fl/task/promise.h
  │ ├─  207.0 ms - fl/stl/function.h
  │ │ ├─  106.3 ms - fl/stl/vector.h
  │ │ │ ├─   72.3 ms - fl/math/math.h
  │ │ │ │ └─   66.8 ms - fl/stl/undef.h
  │ │ │ │   └─   89.8 ms - stdlib.h
  │ │ │ │     ├─   41.7 ms - cstdlib
  │ │ │ │     │ └─   89.8 ms - stdlib.h
  │ │ │ │     │   ├─   41.7 ms - cstdlib
  │ │ │ │     │   │ └─   89.8 ms - stdlib.h
  │ │ │ │     │   ├─   15.1 ms - types.h
  │ │ │ │     │   │ ├─   15.1 ms - types.h
  │ │ │ │     │   │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    2.4 ms - select.h
  │ │ │ │     │   │ └─    2.1 ms - endian.h
  │ │ │ │     │   ├─    0.6 ms - floatn.h
  │ │ │ │     │   └─    0.6 ms - locale_t.h
  │ │ │ │     ├─   15.1 ms - types.h
  │ │ │ │     │ ├─   15.1 ms - types.h
  │ │ │ │     │ │ ├─   15.1 ms - types.h
  │ │ │ │     │ │ │ ├─   15.1 ms - types.h
  │ │ │ │     │ │ │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    2.4 ms - select.h
  │ │ │ │     │ │ │ └─    2.1 ms - endian.h
  │ │ │ │     │ │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    2.4 ms - select.h
  │ │ │ │     │ │ │ └─    0.5 ms - sigset_t.h
  │ │ │ │     │ │ └─    2.1 ms - endian.h
  │ │ │ │     │ ├─    2.6 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.8 ms - thread-shared-types.h
  │ │ │ │     │ ├─    2.4 ms - select.h
  │ │ │ │     │ │ └─    0.5 ms - sigset_t.h
  │ │ │ │     │ └─    2.1 ms - endian.h
  │ │ │ │     ├─    0.6 ms - floatn.h
  │ │ │ │     └─    0.6 ms - locale_t.h
  │ │ │ ├─   18.4 ms - fl/stl/allocator.h
  │ │ │ │ └─   12.6 ms - fl/stl/bitset.h
  │ │ │ │   └─    8.1 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.2 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    4.9 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.7 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.7 ms - fl/stl/functional.h
  │ │ ├─   45.1 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   25.9 ms - fl/stl/type_traits.h
  │ │ │ │ └─   19.5 ms - fl/stl/move.h
  │ │ │ ├─   14.3 ms - fl/stl/atomic.h
  │ │ │ │ └─   13.2 ms - platforms/atomic.h
  │ │ │ │   └─   13.2 ms - platforms/shared/atomic.h
  │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ ├─   40.1 ms - fl/stl/variant.h
  │ │ │ └─   38.4 ms - fl/stl/new.h
  │ │ │   └─   38.3 ms - platforms/new.h
  │ │ │     └─   38.3 ms - platforms/shared/new.h
  │ │ │       └─   30.5 ms - new
  │ │ │         ├─   15.6 ms - c++config.h
  │ │ │         │ └─    6.3 ms - os_defines.h
  │ │ │         │   └─    5.8 ms - features.h
  │ │ │         └─    1.1 ms - version.h
  │ │ ├─    5.3 ms - fl/stl/compiler_control.h
  │ │ └─    4.7 ms - fl/stl/algorithm.h
  │ │   └─    2.0 ms - fl/math/random.h
  │ │     └─    0.9 ms - fl/math/random8.h
  │ └─   43.5 ms - fl/stl/string.h
  │   ├─   12.6 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
  │   ├─    8.6 ms - fl/stl/span.h
  │   │ └─    3.3 ms - fl/math/geometry.h
  │   ├─    5.6 ms - fl/stl/string_view.h
  │   └─    1.5 ms - fl/stl/optional.h
  ├─   11.5 ms - platforms/await.h
  │ └─   11.1 ms - platforms/coroutine_runtime.h
  │   └─    9.5 ms - fl/system/engine_events.h
  │     ├─    4.9 ms - fl/math/screenmap.h
  │     │ └─    3.6 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 (459.8ms)
  ├─  270.7 ms - crgb.h
  │ ├─  269.5 ms - fl/gfx/crgb.h
  │ │ └─  264.6 ms - fl/math/ease.h
  │ │   └─  262.2 ms - fl/math/fixed_point.h
  │ │     ├─   96.2 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   74.6 ms - fl/math/sin32.h
  │ │     │ │ └─   71.1 ms - fl/math/simd.h
  │ │     │ │   └─   70.5 ms - fl/math/simd/types.h
  │ │     │ │     └─   70.2 ms - platforms/simd.h
  │ │     │ │       └─   70.2 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.7 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   27.0 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   23.4 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   21.6 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   18.8 ms - fl/math/fixed_point/s16x16.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   79.9 ms - platforms.h
  │ └─   79.8 ms - platforms/stub/fastled_stub.h
  │   ├─   44.0 ms - platforms/stub/fastspi_stub.h
  │   │ └─   44.0 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   37.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   35.8 ms - fl/id_tracker.h
  │   │   │   └─   34.9 ms - fl/stl/mutex.h
  │   │   │     └─   34.9 ms - platforms/mutex.h
  │   │   │       └─   34.7 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   34.7 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.7 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   35.7 ms - platforms/stub/clockless_stub.h
  │     └─   35.7 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   12.8 ms - fl/system/log.h
  │       │ └─   12.3 ms - fl/stl/strstream.h
  │       ├─   12.6 ms - fl/channels/data.h
  │       │ └─    9.4 ms - fl/channels/config.h
  │       │   ├─    2.1 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.5 ms - fl/stl/weak_ptr.h
  │       └─    1.0 ms - fl/channels/driver.h
  ├─   41.4 ms - colorutils.h
  │ └─   41.1 ms - fl/gfx/colorutils.h
  │   ├─    8.6 ms - fl/gfx/blur.h
  │   │ └─    4.5 ms - fl/gfx/canvas.h
  │   │   └─    2.7 ms - fl/math/alpha.h
  │   ├─    3.1 ms - fl/gfx/fill.h
  │   └─    1.8 ms - fl/gfx/crgb16.h
  ├─   23.9 ms - pixel_controller.h
  │ ├─   17.5 ms - pixel_iterator.h
  │ │ └─   17.4 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    4.9 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    3.8 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    3.2 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    1.4 ms - fl/chipsets/encoders/hd108.h
  │ │   └─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ └─    2.5 ms - rgbw.h
  │   └─    2.3 ms - fl/gfx/rgbw.h
  └─   22.9 ms - pixeltypes.h
    ├─   19.3 ms - lib8tion.h
    │ ├─   10.0 ms - fl/math/math8.h
    │ │ ├─    5.5 ms - fl/math/intmap.h
    │ │ │ └─    4.1 ms - platforms/intmap.h
    │ │ ├─    2.4 ms - fl/math/scale8.h
    │ │ │ └─    2.4 ms - platforms/scale8.h
    │ │ │   └─    1.0 ms - platforms/shared/scale8.h
    │ │ └─    2.0 ms - platforms/math8.h
    │ │   └─    1.6 ms - platforms/shared/math8.h
    │ └─    2.2 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
    └─    3.2 ms - crgb.hpp
fl/ui.h (119.7ms)
  ├─   75.0 ms - fl/stl/json.h
  │ └─   58.0 ms - fl/stl/json/types.h
  │   └─    7.4 ms - fl/stl/limits.h
  ├─    9.9 ms - fl/ui_impl.h
  │ └─    9.3 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/description.h
  │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  └─    9.8 ms - fl/asset.h
    └─    8.2 ms - fl/stl/url.h
chipsets.h (27.7ms)
  ├─   11.2 ms - fl/chipsets/ucs7604.h
  │ └─    8.5 ms - fl/chipsets/encoders/ucs7604.h
  ├─    6.7 ms - fl/chipsets/apa102.h
  ├─    1.7 ms - fl/chipsets/lpd880x.h
  ├─    0.8 ms - fl/chipsets/p9813.h
  └─    0.8 ms - fl/chipsets/ws2801.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1333.7 ms - Source: FastLED.h
  2.  1333.7 ms - Total Source: 
  3.   660.9 ms - Total ParseClass: 
  4.   635.7 ms - Source: fl/task/executor.h
  5.   459.8 ms - Source: fl/fastled.h
  6.   366.3 ms - Source: fl/task/scheduler.h
  7.   356.8 ms - Source: fl/stl/singleton.h
  8.   356.1 ms - Source: fl/stl/thread_local.h
  9.   354.9 ms - Source: fl/stl/thread.h
 10.   354.8 ms - Source: platforms/thread.h
 11.   354.8 ms - Source: platforms/stub/thread_stub.h
 12.   354.7 ms - Source: platforms/stub/thread_stub_stl.h
 13.   349.7 ms - Source: thread
 14.   270.7 ms - Source: crgb.h
 15.   269.5 ms - Source: fl/gfx/crgb.h
 16.   264.6 ms - Source: fl/math/ease.h
 17.   262.2 ms - Source: fl/math/fixed_point.h
 18.   255.6 ms - Source: fl/task/promise.h
 19.   213.7 ms - Total InstantiateFunction: 
 20.   207.0 ms - Source: fl/stl/function.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1333.7ms)
    - fl/task/executor.h (635.7ms)
    - fl/fastled.h (459.8ms)
    - fl/task/scheduler.h (366.3ms)
    - fl/stl/singleton.h (356.8ms)
    - fl/stl/thread_local.h (356.1ms)
    - fl/stl/thread.h (354.9ms)
    - platforms/thread.h (354.8ms)
    - platforms/stub/thread_stub.h (354.8ms)
    - platforms/stub/thread_stub_stl.h (354.7ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1333.7ms)
2. Consider optimizing fl/task/executor.h (635.7ms)
3. Consider optimizing fl/fastled.h (459.8ms)

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

@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.

♻️ Duplicate comments (2)
ci/boards.py (1)

1066-1071: ⚠️ Potential issue | 🟡 Minor

Still verify the legacy Digispark package versions used by CI.

DIGISPARK_TINY still relies on PlatformIO defaults, so the Blink job may pass with newer packages while missing the avr-gcc 4.8.1 / Digistump 1.6.7 acceptance target from the issue. This was already flagged in an earlier review; resolve by pinning platform_packages here or asserting installed package versions in the Digispark workflow.

#!/bin/bash
# Description: Check whether Digispark CI now pins or asserts the legacy Digistump core/toolchain versions.
# Expected: DIGISPARK_TINY has platform_packages for the targeted packages, or workflow/CI code asserts avr-gcc 4.8.1 and Digistump core 1.6.7.

rg -n -C4 'DIGISPARK_TINY|digispark-tiny|platform_packages|toolchain-atmelavr|framework-arduino.*digistump|1\.6\.7|4\.8\.1' ci .github platformio.ini
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ci/boards.py` around lines 1066 - 1071, DIGISPARK_TINY currently relies on
PlatformIO defaults and doesn't pin the legacy Digispark toolchain/core
versions; update the DIGISPARK_TINY Board definition to include explicit
platform_packages entries (e.g., pin toolchain-atmelavr@=4.8.1 and the Digistump
core/package@=1.6.7) in the Board(...) initializer or alternatively add an
assertion step in the Digispark CI workflow that checks installed package
versions (avr-gcc 4.8.1 and Digistump core 1.6.7) before running the Blink job;
modify the DIGISPARK_TINY symbol in ci/boards.py (the Board(...) instantiation)
or the Digispark workflow to implement one of these fixes.
src/cpp_compat.h (1)

36-42: ⚠️ Potential issue | 🟠 Major

Clear any existing static_assert macro before redefining it.

This still risks a macro-redefinition diagnostic on toolchains/headers that already provide static_assert as a macro, which is one of the PR’s target failures. Guard and undefine it immediately before the fallback definition.

Proposed fix
+#ifdef static_assert
+#undef static_assert
+#endif
 `#define` static_assert(...)                                                     \
     FL_STATIC_ASSERT_SELECT(__VA_ARGS__, FL_STATIC_ASSERT_10,                 \
                             FL_STATIC_ASSERT_9, FL_STATIC_ASSERT_8,           \
                             FL_STATIC_ASSERT_7, FL_STATIC_ASSERT_6,           \
                             FL_STATIC_ASSERT_5, FL_STATIC_ASSERT_4,           \
                             FL_STATIC_ASSERT_3, FL_STATIC_ASSERT_2)           \
     (__VA_ARGS__)

To verify the guard is present in the current branch:

#!/bin/bash
# Description: Inspect the static_assert fallback definition and verify it undefines any prior macro first.
# Expected: An `#ifdef/`#if defined(static_assert) guard followed by `#undef` static_assert before `#define` static_assert(...).

sed -n '9,45p' src/cpp_compat.h
rg -n -C3 '^\s*#\s*(ifdef|if\s+defined\(|undef|define)\s+static_assert\b|^\s*#\s*define\s+static_assert\s*\(' src/cpp_compat.h
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/cpp_compat.h` around lines 36 - 42, The fallback static_assert macro can
trigger macro-redefinition diagnostics if an existing static_assert macro
exists; before defining static_assert, add a preprocessor check and undef: use
`#if` defined(static_assert) or `#ifdef` static_assert to `#undef` static_assert, then
proceed to `#define` static_assert(...) as currently implemented (the
FL_STATIC_ASSERT_SELECT(...) invocation and FL_STATIC_ASSERT_2..10 symbols
remain unchanged) so the new fallback always replaces any prior macro safely.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@ci/boards.py`:
- Around line 1066-1071: DIGISPARK_TINY currently relies on PlatformIO defaults
and doesn't pin the legacy Digispark toolchain/core versions; update the
DIGISPARK_TINY Board definition to include explicit platform_packages entries
(e.g., pin toolchain-atmelavr@=4.8.1 and the Digistump core/package@=1.6.7) in
the Board(...) initializer or alternatively add an assertion step in the
Digispark CI workflow that checks installed package versions (avr-gcc 4.8.1 and
Digistump core 1.6.7) before running the Blink job; modify the DIGISPARK_TINY
symbol in ci/boards.py (the Board(...) instantiation) or the Digispark workflow
to implement one of these fixes.

In `@src/cpp_compat.h`:
- Around line 36-42: The fallback static_assert macro can trigger
macro-redefinition diagnostics if an existing static_assert macro exists; before
defining static_assert, add a preprocessor check and undef: use `#if`
defined(static_assert) or `#ifdef` static_assert to `#undef` static_assert, then
proceed to `#define` static_assert(...) as currently implemented (the
FL_STATIC_ASSERT_SELECT(...) invocation and FL_STATIC_ASSERT_2..10 symbols
remain unchanged) so the new fallback always replaces any prior macro safely.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6f8c4c28-000f-4173-96ba-bbe00f9e5ac4

📥 Commits

Reviewing files that changed from the base of the PR and between 7f4fd1c and 2025933.

📒 Files selected for processing (9)
  • ci/boards.py
  • src/cpp_compat.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/third_party/cq_kernel/kiss_fft.h
  • tests/fl/gfx/colorutils.cpp
💤 Files with no reviewable changes (1)
  • src/third_party/cq_kernel/kiss_fft.h
✅ Files skipped from review due to trivial changes (2)
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/fl/gfx/colorutils.cpp.hpp
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/fl/gfx/colorutils.h

@zackees
zackees force-pushed the digispark-tiny-build-fix branch from 2025933 to dbdcb73 Compare April 22, 2026 20:11
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1003.83ms

Top 5 Slowest Headers

  1. FastLED.h - 765.18ms
  2. fl/fastled.h - 330.64ms
  3. fl/task/executor.h - 245.67ms
  4. crgb.h - 174.67ms
  5. fl/gfx/crgb.h - 173.37ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (765.2ms)
⚠️ Header fl/fastled.h exceeds 150ms (330.6ms)
⚠️ Header fl/task/executor.h exceeds 150ms (245.7ms)
⚠️ Header crgb.h exceeds 150ms (174.7ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (173.4ms)
⚠️ Header fl/math/ease.h exceeds 150ms (169.0ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (167.1ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (129.2ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (120.4ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (119.8ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (118.7ms)
⚠️ Header platforms/thread.h exceeds 50ms (118.6ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (118.6ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (118.5ms)
⚠️ Header fl/ui.h exceeds 50ms (106.6ms)
⚠️ Header fl/task/promise.h exceeds 50ms (104.3ms)
⚠️ Header fl/stl/json.h exceeds 50ms (64.9ms)
⚠️ Header fl/stl/function.h exceeds 50ms (62.0ms)
⚠️ Header platforms.h exceeds 50ms (51.4ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (51.3ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (51.0ms)
⚠️ Template instantiation time is high (50.2%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    3,997.66 ms
Frontend Time:             53.51 ms (1.3%)
Backend Time:              1,106.96 ms (27.7%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    16314.05 ms (408.1%)
Templates                   573.62 ms ( 14.3%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  2093.9 ms - FastLED.h (SLOW)
  1222.8 ms - fl/task/executor.h (SLOW)
   675.0 ms - fl/task/promise.h (SLOW)
   622.8 ms - fl/stl/function.h (SLOW)
   535.4 ms - fl/task/scheduler.h (SLOW)
   526.7 ms - fl/stl/singleton.h (SLOW)
   526.0 ms - fl/stl/thread_local.h (SLOW)
   525.0 ms - fl/stl/thread.h (SLOW)
   524.9 ms - platforms/thread.h (SLOW)
   524.8 ms - platforms/stub/thread_stub.h (SLOW)
   524.8 ms - platforms/stub/thread_stub_stl.h (SLOW)
   431.0 ms - fl/fastled.h (SLOW)
   346.3 ms - fl/stl/shared_ptr.h (SLOW)
   305.0 ms - fl/stl/type_traits.h (SLOW)
   235.7 ms - crgb.h (SLOW)
   234.4 ms - fl/gfx/crgb.h (SLOW)
   231.7 ms - fl/stl/stdint.h (SLOW)
   230.2 ms - fl/math/ease.h (SLOW)
   228.3 ms - fl/math/fixed_point.h (SLOW)
   166.3 ms - fl/stl/vector.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (2093.9ms)
  ├─ 1222.8 ms - fl/task/executor.h
  │ ├─  675.0 ms - fl/task/promise.h
  │ │ ├─  622.8 ms - fl/stl/function.h
  │ │ │ ├─  346.3 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  305.0 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─  149.7 ms - fl/stl/move.h
  │ │ │ │ ├─   12.7 ms - fl/stl/align.h
  │ │ │ │ ├─    6.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    5.5 ms - platforms/atomic.h
  │ │ │ │ │   └─    5.5 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.9 ms - fl/stl/bit_cast.h
  │ │ │ │   └─    0.5 ms - fl/stl/cstring.h
  │ │ │ ├─  166.3 ms - fl/stl/vector.h
  │ │ │ │ ├─   95.8 ms - fl/math/math.h
  │ │ │ │ │ └─   85.8 ms - fl/stl/undef.h
  │ │ │ │ │   └─  103.5 ms - stdlib.h
  │ │ │ │ │     ├─   51.4 ms - cstdlib
  │ │ │ │ │     │ └─  103.5 ms - stdlib.h
  │ │ │ │ │     │   ├─   51.4 ms - cstdlib
  │ │ │ │ │     │   └─    7.3 ms - types.h
  │ │ │ │ │     └─    7.3 ms - types.h
  │ │ │ │ │       ├─    7.3 ms - types.h
  │ │ │ │ │       │ ├─    7.3 ms - types.h
  │ │ │ │ │       │ ├─    1.4 ms - pthreadtypes.h
  │ │ │ │ │       │ ├─    1.2 ms - select.h
  │ │ │ │ │       │ └─    1.2 ms - endian.h
  │ │ │ │ │       ├─    1.4 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.1 ms - thread-shared-types.h
  │ │ │ │ │       ├─    1.2 ms - select.h
  │ │ │ │ │       └─    1.2 ms - endian.h
  │ │ │ │ ├─   35.5 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   30.5 ms - fl/stl/bitset.h
  │ │ │ │ │   └─   26.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─   13.9 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    8.1 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ │ ├─   78.2 ms - fl/stl/variant.h
  │ │ │ │ └─   76.3 ms - fl/stl/new.h
  │ │ │ │   └─   76.3 ms - platforms/new.h
  │ │ │ │     └─   76.3 ms - platforms/shared/new.h
  │ │ │ │       └─   60.3 ms - new
  │ │ │ │         ├─    8.7 ms - c++config.h
  │ │ │ │         │ └─    3.3 ms - os_defines.h
  │ │ │ │         └─    0.6 ms - version.h
  │ │ │ ├─   17.9 ms - fl/stl/compiler_control.h
  │ │ │ └─    6.4 ms - fl/stl/pair.h
  │ │ └─   47.4 ms - fl/stl/string.h
  │ │   ├─   17.3 ms - fl/stl/span.h
  │ │   │ └─    8.1 ms - fl/math/geometry.h
  │ │   ├─   10.9 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.8 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
  │ ├─  535.4 ms - fl/task/scheduler.h
  │ │ ├─  526.7 ms - fl/stl/singleton.h
  │ │ │ └─  526.0 ms - fl/stl/thread_local.h
  │ │ │   └─  525.0 ms - fl/stl/thread.h
  │ │ │     └─  524.9 ms - platforms/thread.h
  │ │ │       └─  524.8 ms - platforms/stub/thread_stub.h
  │ │ │         └─  524.8 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  519.3 ms - thread
  │ │ │             ├─  326.5 ms - std_thread.h
  │ │ │             └─  133.3 ms - this_thread_sleep.h
  │ │ └─    7.9 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.2 ms - platforms/await.h
  │ │ └─    9.8 ms - platforms/coroutine_runtime.h
  │ │   └─    8.4 ms - fl/system/engine_events.h
  │ │     ├─    4.2 ms - fl/math/screenmap.h
  │ │     │ └─    3.1 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
  ├─  431.0 ms - fl/fastled.h
  │ ├─  235.7 ms - crgb.h
  │ │ ├─  234.4 ms - fl/gfx/crgb.h
  │ │ │ └─  230.2 ms - fl/math/ease.h
  │ │ │   └─  228.3 ms - fl/math/fixed_point.h
  │ │ │     ├─  108.6 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   91.8 ms - fl/math/sin32.h
  │ │ │     │ │ └─   89.3 ms - fl/math/simd.h
  │ │ │     │ │   └─   88.7 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   88.4 ms - platforms/simd.h
  │ │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.9 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   14.8 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.6 ms - fl/math/fixed_point/s8x24.h
  │ │ │     └─   14.4 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─   85.5 ms - platforms.h
  │ │ └─   85.4 ms - platforms/stub/fastled_stub.h
  │ │   ├─   52.8 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   52.8 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   47.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   45.1 ms - fl/id_tracker.h
  │ │   │   │   └─   44.2 ms - fl/stl/mutex.h
  │ │   │   │     └─   44.1 ms - platforms/mutex.h
  │ │   │   │       └─   44.0 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.2 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.2 ms - fl/system/log.h
  │ │       │ └─   10.7 ms - fl/stl/strstream.h
  │ │       ├─    2.2 ms - fl/channels/manager.h
  │ │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │ │       └─    1.0 ms - fl/channels/driver.h
  │ ├─   36.7 ms - colorutils.h
  │ │ └─   36.4 ms - fl/gfx/colorutils.h
  │ │   ├─    7.8 ms - fl/gfx/blur.h
  │ │   │ └─    4.1 ms - fl/gfx/canvas.h
  │ │   │   └─    2.5 ms - fl/math/alpha.h
  │ │   ├─    2.8 ms - fl/gfx/fill.h
  │ │   └─    1.5 ms - fl/gfx/crgb16.h
  │ ├─   28.8 ms - pixeltypes.h
  │ │ ├─   25.7 ms - lib8tion.h
  │ │ │ ├─   18.2 ms - fl/math/math8.h
  │ │ │ │ ├─   12.5 ms - fl/math/scale8.h
  │ │ │ │ │ └─   12.5 ms - platforms/scale8.h
  │ │ │ │ │   └─   11.2 ms - platforms/shared/scale8.h
  │ │ │ │ ├─    4.0 ms - fl/math/intmap.h
  │ │ │ │ │ └─    3.1 ms - platforms/intmap.h
  │ │ │ │ └─    1.6 ms - platforms/math8.h
  │ │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ │ └─    1.6 ms - fl/math/beat.h
  │ │ │   └─    0.8 ms - fl/math/trig8.h
  │ │ │     └─    0.8 ms - platforms/trig8.h
  │ │ │       └─    0.7 ms - platforms/shared/trig8.h
  │ │ └─    2.7 ms - crgb.hpp
  │ └─   20.3 ms - pixel_controller.h
  │   ├─   14.4 ms - pixel_iterator.h
  │   │ └─   14.3 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.9 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
  ├─  231.7 ms - fl/stl/stdint.h
  │ └─  163.2 ms - platforms/int.h
  │   ├─  162.6 ms - platforms/shared/int.h
  │   │ └─  162.5 ms - platforms/shared/int_linux.h
  │   └─    0.5 ms - platforms/arm/is_arm.h
  ├─  125.2 ms - fl/ui.h
  │ ├─   64.7 ms - fl/stl/json.h
  │ │ └─   50.6 ms - fl/stl/json/types.h
  │ │   └─    6.2 ms - fl/stl/limits.h
  │ ├─    9.8 ms - fl/ui_impl.h
  │ │ └─    9.3 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.6 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.8 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.4 ms - fl/asset.h
  │   └─    6.9 ms - fl/stl/url.h
  └─   24.7 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.5 ms - fl/chipsets/lpd880x.h
    ├─    0.8 ms - fl/chipsets/p9813.h
    └─    0.7 ms - fl/chipsets/encoders/ws2816.h
fl/task/executor.h (1222.8ms)
  ├─  675.0 ms - fl/task/promise.h
  │ ├─  622.8 ms - fl/stl/function.h
  │ │ ├─  346.3 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  305.0 ms - fl/stl/type_traits.h
  │ │ │ │ └─  149.7 ms - fl/stl/move.h
  │ │ │ ├─   12.7 ms - fl/stl/align.h
  │ │ │ ├─    6.3 ms - fl/stl/atomic.h
  │ │ │ │ └─    5.5 ms - platforms/atomic.h
  │ │ │ │   └─    5.5 ms - platforms/shared/atomic.h
  │ │ │ └─    0.9 ms - fl/stl/bit_cast.h
  │ │ │   └─    0.5 ms - fl/stl/cstring.h
  │ │ ├─  166.3 ms - fl/stl/vector.h
  │ │ │ ├─   95.8 ms - fl/math/math.h
  │ │ │ │ └─   85.8 ms - fl/stl/undef.h
  │ │ │ │   └─  103.5 ms - stdlib.h
  │ │ │ │     ├─   51.4 ms - cstdlib
  │ │ │ │     │ └─  103.5 ms - stdlib.h
  │ │ │ │     │   ├─   51.4 ms - cstdlib
  │ │ │ │     │   │ └─  103.5 ms - stdlib.h
  │ │ │ │     │   └─    7.3 ms - types.h
  │ │ │ │     │     ├─    7.3 ms - types.h
  │ │ │ │     │     ├─    1.4 ms - pthreadtypes.h
  │ │ │ │     │     ├─    1.2 ms - select.h
  │ │ │ │     │     └─    1.2 ms - endian.h
  │ │ │ │     └─    7.3 ms - types.h
  │ │ │ │       ├─    7.3 ms - types.h
  │ │ │ │       │ ├─    7.3 ms - types.h
  │ │ │ │       │ │ ├─    7.3 ms - types.h
  │ │ │ │       │ │ ├─    1.4 ms - pthreadtypes.h
  │ │ │ │       │ │ ├─    1.2 ms - select.h
  │ │ │ │       │ │ └─    1.2 ms - endian.h
  │ │ │ │       │ ├─    1.4 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.1 ms - thread-shared-types.h
  │ │ │ │       │ ├─    1.2 ms - select.h
  │ │ │ │       │ └─    1.2 ms - endian.h
  │ │ │ │       ├─    1.4 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.1 ms - thread-shared-types.h
  │ │ │ │       ├─    1.2 ms - select.h
  │ │ │ │       └─    1.2 ms - endian.h
  │ │ │ ├─   35.5 ms - fl/stl/allocator.h
  │ │ │ │ └─   30.5 ms - fl/stl/bitset.h
  │ │ │ │   └─   26.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ ├─   13.9 ms - fl/stl/initializer_list.h
  │ │ │ ├─    8.1 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ ├─   78.2 ms - fl/stl/variant.h
  │ │ │ └─   76.3 ms - fl/stl/new.h
  │ │ │   └─   76.3 ms - platforms/new.h
  │ │ │     └─   76.3 ms - platforms/shared/new.h
  │ │ │       └─   60.3 ms - new
  │ │ │         ├─    8.7 ms - c++config.h
  │ │ │         │ └─    3.3 ms - os_defines.h
  │ │ │         │   └─    3.0 ms - features.h
  │ │ │         └─    0.6 ms - version.h
  │ │ ├─   17.9 ms - fl/stl/compiler_control.h
  │ │ └─    6.4 ms - fl/stl/pair.h
  │ └─   47.4 ms - fl/stl/string.h
  │   ├─   17.3 ms - fl/stl/span.h
  │   │ └─    8.1 ms - fl/math/geometry.h
  │   ├─   10.9 ms - fl/stl/basic_string.h
  │   │ ├─    0.8 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
  ├─  535.4 ms - fl/task/scheduler.h
  │ ├─  526.7 ms - fl/stl/singleton.h
  │ │ └─  526.0 ms - fl/stl/thread_local.h
  │ │   └─  525.0 ms - fl/stl/thread.h
  │ │     └─  524.9 ms - platforms/thread.h
  │ │       └─  524.8 ms - platforms/stub/thread_stub.h
  │ │         └─  524.8 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  519.3 ms - thread
  │ │             ├─  326.5 ms - std_thread.h
  │ │             │ ├─   86.1 ms - tuple
  │ │             │ ├─   64.4 ms - unique_ptr.h
  │ │             │ ├─   59.3 ms - refwrap.h
  │ │             │ ├─   53.6 ms - iosfwd
  │ │             │ └─   13.9 ms - gthr.h
  │ │             └─  133.3 ms - this_thread_sleep.h
  │ │               ├─   86.1 ms - chrono.h
  │ │               └─    2.5 ms - cerrno
  │ └─    7.9 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.2 ms - platforms/await.h
  │ └─    9.8 ms - platforms/coroutine_runtime.h
  │   └─    8.4 ms - fl/system/engine_events.h
  │     ├─    4.2 ms - fl/math/screenmap.h
  │     │ └─    3.1 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 (431.0ms)
  ├─  235.7 ms - crgb.h
  │ ├─  234.4 ms - fl/gfx/crgb.h
  │ │ └─  230.2 ms - fl/math/ease.h
  │ │   └─  228.3 ms - fl/math/fixed_point.h
  │ │     ├─  108.6 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   91.8 ms - fl/math/sin32.h
  │ │     │ │ └─   89.3 ms - fl/math/simd.h
  │ │     │ │   └─   88.7 ms - fl/math/simd/types.h
  │ │     │ │     └─   88.4 ms - platforms/simd.h
  │ │     │ │       └─   88.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.9 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   14.8 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.6 ms - fl/math/fixed_point/s8x24.h
  │ │     └─   14.4 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─   85.5 ms - platforms.h
  │ └─   85.4 ms - platforms/stub/fastled_stub.h
  │   ├─   52.8 ms - platforms/stub/fastspi_stub.h
  │   │ └─   52.8 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   47.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   45.1 ms - fl/id_tracker.h
  │   │   │   └─   44.2 ms - fl/stl/mutex.h
  │   │   │     └─   44.1 ms - platforms/mutex.h
  │   │   │       └─   44.0 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   44.0 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.2 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.2 ms - fl/system/log.h
  │       │ └─   10.7 ms - fl/stl/strstream.h
  │       ├─    2.2 ms - fl/channels/manager.h
  │       ├─    1.4 ms - fl/stl/weak_ptr.h
  │       └─    1.0 ms - fl/channels/driver.h
  ├─   36.7 ms - colorutils.h
  │ └─   36.4 ms - fl/gfx/colorutils.h
  │   ├─    7.8 ms - fl/gfx/blur.h
  │   │ └─    4.1 ms - fl/gfx/canvas.h
  │   │   └─    2.5 ms - fl/math/alpha.h
  │   ├─    2.8 ms - fl/gfx/fill.h
  │   └─    1.5 ms - fl/gfx/crgb16.h
  ├─   28.8 ms - pixeltypes.h
  │ ├─   25.7 ms - lib8tion.h
  │ │ ├─   18.2 ms - fl/math/math8.h
  │ │ │ ├─   12.5 ms - fl/math/scale8.h
  │ │ │ │ └─   12.5 ms - platforms/scale8.h
  │ │ │ │   └─   11.2 ms - platforms/shared/scale8.h
  │ │ │ ├─    4.0 ms - fl/math/intmap.h
  │ │ │ │ └─    3.1 ms - platforms/intmap.h
  │ │ │ └─    1.6 ms - platforms/math8.h
  │ │ │   └─    1.2 ms - platforms/shared/math8.h
  │ │ └─    1.6 ms - fl/math/beat.h
  │ │   └─    0.8 ms - fl/math/trig8.h
  │ │     └─    0.8 ms - platforms/trig8.h
  │ │       └─    0.7 ms - platforms/shared/trig8.h
  │ └─    2.7 ms - crgb.hpp
  └─   20.3 ms - pixel_controller.h
    ├─   14.4 ms - pixel_iterator.h
    │ └─   14.3 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.9 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 (231.7ms)
  └─  163.2 ms - platforms/int.h
    ├─  162.6 ms - platforms/shared/int.h
    │ └─  162.5 ms - platforms/shared/int_linux.h
    └─    0.5 ms - platforms/arm/is_arm.h
fl/ui.h (125.2ms)
  ├─   64.7 ms - fl/stl/json.h
  │ └─   50.6 ms - fl/stl/json/types.h
  │   └─    6.2 ms - fl/stl/limits.h
  ├─    9.8 ms - fl/ui_impl.h
  │ └─    9.3 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.6 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.8 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.4 ms - fl/asset.h
    └─    6.9 ms - fl/stl/url.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  2093.9 ms - Source: FastLED.h
  2.  2093.9 ms - Total Source: 
  3.  1222.8 ms - Source: fl/task/executor.h
  4.   728.5 ms - Total ParseClass: 
  5.   675.0 ms - Source: fl/task/promise.h
  6.   622.8 ms - Source: fl/stl/function.h
  7.   535.4 ms - Source: fl/task/scheduler.h
  8.   526.7 ms - Source: fl/stl/singleton.h
  9.   526.0 ms - Source: fl/stl/thread_local.h
 10.   525.0 ms - Source: fl/stl/thread.h
 11.   524.9 ms - Source: platforms/thread.h
 12.   524.8 ms - Source: platforms/stub/thread_stub.h
 13.   524.8 ms - Source: platforms/stub/thread_stub_stl.h
 14.   519.3 ms - Source: thread
 15.   431.0 ms - Source: fl/fastled.h
 16.   346.3 ms - Source: fl/stl/shared_ptr.h
 17.   326.5 ms - Source: std_thread.h
 18.   305.0 ms - Source: fl/stl/type_traits.h
 19.   235.7 ms - Source: crgb.h
 20.   234.4 ms - Source: fl/gfx/crgb.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (2093.9ms)
    - fl/task/executor.h (1222.8ms)
    - fl/task/promise.h (675.0ms)
    - fl/stl/function.h (622.8ms)
    - fl/task/scheduler.h (535.4ms)
    - fl/stl/singleton.h (526.7ms)
    - fl/stl/thread_local.h (526.0ms)
    - fl/stl/thread.h (525.0ms)
    - platforms/thread.h (524.9ms)
    - platforms/stub/thread_stub.h (524.8ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (2093.9ms)
2. Consider optimizing fl/task/executor.h (1222.8ms)
3. Consider optimizing fl/task/promise.h (675.0ms)

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

@zackees
zackees force-pushed the digispark-tiny-build-fix branch from dbdcb73 to c12e15a Compare April 22, 2026 20:12
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1279.52ms

Top 5 Slowest Headers

  1. FastLED.h - 981.39ms
  2. fl/fastled.h - 415.43ms
  3. fl/task/executor.h - 325.20ms
  4. crgb.h - 234.99ms
  5. fl/gfx/crgb.h - 233.52ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (981.4ms)
⚠️ Header fl/fastled.h exceeds 150ms (415.4ms)
⚠️ Header fl/task/executor.h exceeds 150ms (325.2ms)
⚠️ Header crgb.h exceeds 150ms (235.0ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (233.5ms)
⚠️ Header fl/math/ease.h exceeds 150ms (228.2ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (225.5ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (175.1ms)
⚠️ Header fl/stl/singleton.h exceeds 150ms (164.4ms)
⚠️ Header fl/stl/thread_local.h exceeds 150ms (163.6ms)
⚠️ Header fl/stl/thread.h exceeds 150ms (162.3ms)
⚠️ Header platforms/thread.h exceeds 150ms (162.2ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 150ms (162.1ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 150ms (162.1ms)
⚠️ Header fl/ui.h exceeds 50ms (136.5ms)
⚠️ Header fl/task/promise.h exceeds 50ms (134.8ms)
⚠️ Header fl/stl/json.h exceeds 50ms (85.0ms)
⚠️ Header fl/stl/function.h exceeds 50ms (79.5ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (67.0ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (66.0ms)
⚠️ Header platforms.h exceeds 50ms (61.0ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (60.9ms)
⚠️ Template instantiation time is high (53.5%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,671.40 ms
Frontend Time:             18.16 ms (1.1%)
Backend Time:              109.45 ms (6.5%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                     9601.77 ms (574.5%)
Templates                   671.41 ms ( 40.2%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1238.9 ms - FastLED.h (SLOW)
   546.1 ms - fl/task/executor.h (SLOW)
   453.3 ms - fl/fastled.h (SLOW)
   310.2 ms - fl/task/scheduler.h (SLOW)
   299.9 ms - fl/stl/singleton.h (SLOW)
   299.1 ms - fl/stl/thread_local.h (SLOW)
   297.8 ms - fl/stl/thread.h (SLOW)
   297.7 ms - platforms/thread.h (SLOW)
   297.7 ms - platforms/stub/thread_stub.h (SLOW)
   297.6 ms - platforms/stub/thread_stub_stl.h (SLOW)
   250.8 ms - crgb.h (SLOW)
   249.3 ms - fl/gfx/crgb.h (SLOW)
   244.1 ms - fl/math/ease.h (SLOW)
   241.6 ms - fl/math/fixed_point.h (SLOW)
   221.3 ms - fl/task/promise.h (SLOW)
   168.0 ms - fl/stl/function.h (SLOW)
   133.8 ms - fl/ui.h (SLOW)
    87.4 ms - fl/math/fixed_point/s4x12.h (SLOW)
    85.3 ms - platforms.h (SLOW)
    85.3 ms - platforms/stub/fastled_stub.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1238.9ms)
  ├─  546.1 ms - fl/task/executor.h
  │ ├─  310.2 ms - fl/task/scheduler.h
  │ │ ├─  299.9 ms - fl/stl/singleton.h
  │ │ │ └─  299.1 ms - fl/stl/thread_local.h
  │ │ │   └─  297.8 ms - fl/stl/thread.h
  │ │ │     └─  297.7 ms - platforms/thread.h
  │ │ │       └─  297.7 ms - platforms/stub/thread_stub.h
  │ │ │         └─  297.6 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  292.7 ms - thread
  │ │ │             ├─  176.6 ms - std_thread.h
  │ │ │             └─  102.1 ms - this_thread_sleep.h
  │ │ └─    9.4 ms - fl/task/task.h
  │ │   └─    3.9 ms - fl/trace.h
  │ │     ├─    2.4 ms - fl/stl/chrono.h
  │ │     └─    1.1 ms - fl/stl/tuple.h
  │ ├─  221.3 ms - fl/task/promise.h
  │ │ ├─  168.0 ms - fl/stl/function.h
  │ │ │ ├─   78.3 ms - fl/stl/vector.h
  │ │ │ │ ├─   42.3 ms - fl/math/math.h
  │ │ │ │ │ └─   36.1 ms - fl/stl/undef.h
  │ │ │ │ │   └─   53.6 ms - stdlib.h
  │ │ │ │ │     ├─   27.6 ms - cstdlib
  │ │ │ │ │     │ ├─   53.6 ms - stdlib.h
  │ │ │ │ │     │ │ ├─   27.6 ms - cstdlib
  │ │ │ │ │     │ │ └─   10.6 ms - types.h
  │ │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │ │     └─   10.6 ms - types.h
  │ │ │ │ │       ├─   10.6 ms - types.h
  │ │ │ │ │       │ ├─   10.6 ms - types.h
  │ │ │ │ │       │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │ │       │ ├─    1.7 ms - endian.h
  │ │ │ │ │       │ └─    1.6 ms - select.h
  │ │ │ │ │       ├─    1.8 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │ │       ├─    1.7 ms - endian.h
  │ │ │ │ │       └─    1.6 ms - select.h
  │ │ │ │ ├─   19.8 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   13.6 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    8.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │ │       └─    0.5 ms - fl/stl/utility.h
  │ │ │ │ ├─    4.5 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.8 ms - fl/stl/functional.h
  │ │ │ ├─   41.1 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   29.3 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   22.3 ms - fl/stl/move.h
  │ │ │ │ ├─    6.3 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    5.3 ms - platforms/atomic.h
  │ │ │ │ │   └─    5.3 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ │ ├─   33.1 ms - fl/stl/variant.h
  │ │ │ │ └─   31.0 ms - fl/stl/new.h
  │ │ │ │   └─   31.0 ms - platforms/new.h
  │ │ │ │     └─   30.9 ms - platforms/shared/new.h
  │ │ │ │       └─   26.9 ms - new
  │ │ │ │         ├─   13.5 ms - c++config.h
  │ │ │ │         │ └─    4.7 ms - os_defines.h
  │ │ │ │         └─    0.6 ms - version.h
  │ │ │ ├─    5.0 ms - fl/stl/algorithm.h
  │ │ │ │ └─    2.2 ms - fl/math/random.h
  │ │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ │ └─    4.4 ms - fl/stl/compiler_control.h
  │ │ └─   47.5 ms - fl/stl/string.h
  │ │   ├─   13.8 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.1 ms - fl/stl/not_null.h
  │ │   │ ├─    1.0 ms - fl/stl/iterator.h
  │ │   │ └─    0.6 ms - fl/stl/charconv.h
  │ │   ├─    9.5 ms - fl/stl/span.h
  │ │   │ └─    3.8 ms - fl/math/geometry.h
  │ │   ├─    6.0 ms - fl/stl/string_view.h
  │ │   └─    1.5 ms - fl/stl/optional.h
  │ ├─   12.2 ms - platforms/await.h
  │ │ └─   11.7 ms - platforms/coroutine_runtime.h
  │ │   └─   10.0 ms - fl/system/engine_events.h
  │ │     ├─    5.2 ms - fl/math/screenmap.h
  │ │     │ └─    3.9 ms - fl/stl/flat_map.h
  │ │     └─    3.3 ms - fl/math/xymap.h
  │ │       └─    0.9 ms - fl/math/lut.h
  │ └─    0.9 ms - fl/task/promise_result.h
  ├─  453.3 ms - fl/fastled.h
  │ ├─  250.8 ms - crgb.h
  │ │ ├─  249.3 ms - fl/gfx/crgb.h
  │ │ │ └─  244.1 ms - fl/math/ease.h
  │ │ │   └─  241.6 ms - fl/math/fixed_point.h
  │ │ │     ├─   87.4 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   65.7 ms - fl/math/sin32.h
  │ │ │     │ │ └─   62.3 ms - fl/math/simd.h
  │ │ │     │ │   └─   61.7 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   61.4 ms - platforms/simd.h
  │ │ │     │ ├─    1.2 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.2 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   19.1 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   19.1 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   85.3 ms - platforms.h
  │ │ └─   85.3 ms - platforms/stub/fastled_stub.h
  │ │   ├─   45.7 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   45.7 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   38.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   35.4 ms - fl/id_tracker.h
  │ │   │   │   └─   34.1 ms - fl/stl/mutex.h
  │ │   │   │     └─   34.0 ms - platforms/mutex.h
  │ │   │   │       └─   33.8 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    6.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   39.5 ms - platforms/stub/clockless_stub.h
  │ │     └─   39.4 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   14.1 ms - fl/channels/data.h
  │ │       │ └─   10.5 ms - fl/channels/config.h
  │ │       │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.8 ms - fl/chipsets/spi.h
  │ │       ├─   13.8 ms - fl/system/log.h
  │ │       │ └─   13.3 ms - fl/stl/strstream.h
  │ │       ├─    2.5 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.2 ms - fl/channels/driver.h
  │ ├─   44.7 ms - colorutils.h
  │ │ └─   44.2 ms - fl/gfx/colorutils.h
  │ │   ├─    9.4 ms - fl/gfx/blur.h
  │ │   │ └─    5.0 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
  │ ├─   25.1 ms - pixel_controller.h
  │ │ ├─   18.1 ms - pixel_iterator.h
  │ │ │ └─   18.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.7 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.8 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.7 ms - rgbw.h
  │ │   └─    2.5 ms - fl/gfx/rgbw.h
  │ └─   23.9 ms - pixeltypes.h
  │   ├─   20.0 ms - lib8tion.h
  │   │ ├─   10.4 ms - fl/math/math8.h
  │   │ │ ├─    5.5 ms - fl/math/intmap.h
  │   │ │ │ └─    4.3 ms - platforms/intmap.h
  │   │ │ ├─    2.6 ms - fl/math/scale8.h
  │   │ │ │ └─    2.6 ms - platforms/scale8.h
  │   │ │ │   └─    1.1 ms - platforms/shared/scale8.h
  │   │ │ └─    2.2 ms - platforms/math8.h
  │   │ │   └─    1.8 ms - platforms/shared/math8.h
  │   │ ├─    2.0 ms - fl/math/beat.h
  │   │ │ └─    1.1 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
  │   │ └─    0.5 ms - fl/math/time_functions.h
  │   └─    3.5 ms - crgb.hpp
  ├─  133.8 ms - fl/ui.h
  │ ├─   84.6 ms - fl/stl/json.h
  │ │ └─   65.6 ms - fl/stl/json/types.h
  │ │   └─    7.9 ms - fl/stl/limits.h
  │ ├─   10.7 ms - fl/ui_impl.h
  │ │ └─   10.1 ms - platforms/ui_defs.h
  │ │   ├─    2.3 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ └─   10.6 ms - fl/asset.h
  │   └─    9.0 ms - fl/stl/url.h
  ├─   29.7 ms - chipsets.h
  │ ├─   12.0 ms - fl/chipsets/ucs7604.h
  │ │ └─    9.2 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    7.2 ms - fl/chipsets/apa102.h
  │ ├─    1.8 ms - fl/chipsets/lpd880x.h
  │ ├─    0.9 ms - fl/chipsets/p9813.h
  │ └─    0.8 ms - fl/chipsets/encoders/ws2816.h
  └─   24.4 ms - fl/audio/audio_processor.h
    ├─    6.1 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 (546.1ms)
  ├─  310.2 ms - fl/task/scheduler.h
  │ ├─  299.9 ms - fl/stl/singleton.h
  │ │ └─  299.1 ms - fl/stl/thread_local.h
  │ │   └─  297.8 ms - fl/stl/thread.h
  │ │     └─  297.7 ms - platforms/thread.h
  │ │       └─  297.7 ms - platforms/stub/thread_stub.h
  │ │         └─  297.6 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  292.7 ms - thread
  │ │             ├─  176.6 ms - std_thread.h
  │ │             │ ├─   60.3 ms - tuple
  │ │             │ ├─   26.0 ms - iosfwd
  │ │             │ ├─   21.6 ms - refwrap.h
  │ │             │ ├─   13.0 ms - gthr.h
  │ │             │ └─    6.8 ms - unique_ptr.h
  │ │             └─  102.1 ms - this_thread_sleep.h
  │ │               ├─   89.4 ms - chrono.h
  │ │               └─    3.8 ms - cerrno
  │ └─    9.4 ms - fl/task/task.h
  │   └─    3.9 ms - fl/trace.h
  │     ├─    2.4 ms - fl/stl/chrono.h
  │     └─    1.1 ms - fl/stl/tuple.h
  ├─  221.3 ms - fl/task/promise.h
  │ ├─  168.0 ms - fl/stl/function.h
  │ │ ├─   78.3 ms - fl/stl/vector.h
  │ │ │ ├─   42.3 ms - fl/math/math.h
  │ │ │ │ └─   36.1 ms - fl/stl/undef.h
  │ │ │ │   └─   53.6 ms - stdlib.h
  │ │ │ │     ├─   27.6 ms - cstdlib
  │ │ │ │     │ ├─   53.6 ms - stdlib.h
  │ │ │ │     │ │ ├─   27.6 ms - cstdlib
  │ │ │ │     │ │ │ ├─   53.6 ms - stdlib.h
  │ │ │ │     │ │ │ └─    0.6 ms - std_abs.h
  │ │ │ │     │ │ └─   10.6 ms - types.h
  │ │ │ │     │ │   ├─   10.6 ms - types.h
  │ │ │ │     │ │   ├─    1.8 ms - pthreadtypes.h
  │ │ │ │     │ │   ├─    1.7 ms - endian.h
  │ │ │ │     │ │   └─    1.6 ms - select.h
  │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │     └─   10.6 ms - types.h
  │ │ │ │       ├─   10.6 ms - types.h
  │ │ │ │       │ ├─   10.6 ms - types.h
  │ │ │ │       │ │ ├─   10.6 ms - types.h
  │ │ │ │       │ │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ │ ├─    1.7 ms - endian.h
  │ │ │ │       │ │ └─    1.6 ms - select.h
  │ │ │ │       │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │       │ ├─    1.7 ms - endian.h
  │ │ │ │       │ └─    1.6 ms - select.h
  │ │ │ │       ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.3 ms - thread-shared-types.h
  │ │ │ │       ├─    1.7 ms - endian.h
  │ │ │ │       └─    1.6 ms - select.h
  │ │ │ ├─   19.8 ms - fl/stl/allocator.h
  │ │ │ │ └─   13.6 ms - fl/stl/bitset.h
  │ │ │ │   └─    8.8 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │       └─    0.5 ms - fl/stl/utility.h
  │ │ │ ├─    4.5 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.8 ms - fl/stl/functional.h
  │ │ ├─   41.1 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   29.3 ms - fl/stl/type_traits.h
  │ │ │ │ └─   22.3 ms - fl/stl/move.h
  │ │ │ ├─    6.3 ms - fl/stl/atomic.h
  │ │ │ │ └─    5.3 ms - platforms/atomic.h
  │ │ │ │   └─    5.3 ms - platforms/shared/atomic.h
  │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ ├─   33.1 ms - fl/stl/variant.h
  │ │ │ └─   31.0 ms - fl/stl/new.h
  │ │ │   └─   31.0 ms - platforms/new.h
  │ │ │     └─   30.9 ms - platforms/shared/new.h
  │ │ │       └─   26.9 ms - new
  │ │ │         ├─   13.5 ms - c++config.h
  │ │ │         │ └─    4.7 ms - os_defines.h
  │ │ │         │   └─    4.3 ms - features.h
  │ │ │         └─    0.6 ms - version.h
  │ │ ├─    5.0 ms - fl/stl/algorithm.h
  │ │ │ └─    2.2 ms - fl/math/random.h
  │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ └─    4.4 ms - fl/stl/compiler_control.h
  │ └─   47.5 ms - fl/stl/string.h
  │   ├─   13.8 ms - fl/stl/basic_string.h
  │   │ ├─    1.1 ms - fl/stl/not_null.h
  │   │ ├─    1.0 ms - fl/stl/iterator.h
  │   │ └─    0.6 ms - fl/stl/charconv.h
  │   ├─    9.5 ms - fl/stl/span.h
  │   │ └─    3.8 ms - fl/math/geometry.h
  │   ├─    6.0 ms - fl/stl/string_view.h
  │   └─    1.5 ms - fl/stl/optional.h
  ├─   12.2 ms - platforms/await.h
  │ └─   11.7 ms - platforms/coroutine_runtime.h
  │   └─   10.0 ms - fl/system/engine_events.h
  │     ├─    5.2 ms - fl/math/screenmap.h
  │     │ └─    3.9 ms - fl/stl/flat_map.h
  │     └─    3.3 ms - fl/math/xymap.h
  │       └─    0.9 ms - fl/math/lut.h
  └─    0.9 ms - fl/task/promise_result.h
fl/fastled.h (453.3ms)
  ├─  250.8 ms - crgb.h
  │ ├─  249.3 ms - fl/gfx/crgb.h
  │ │ └─  244.1 ms - fl/math/ease.h
  │ │   └─  241.6 ms - fl/math/fixed_point.h
  │ │     ├─   87.4 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   65.7 ms - fl/math/sin32.h
  │ │     │ │ └─   62.3 ms - fl/math/simd.h
  │ │     │ │   └─   61.7 ms - fl/math/simd/types.h
  │ │     │ │     └─   61.4 ms - platforms/simd.h
  │ │     │ │       └─   61.4 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.2 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   19.1 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   19.1 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   85.3 ms - platforms.h
  │ └─   85.3 ms - platforms/stub/fastled_stub.h
  │   ├─   45.7 ms - platforms/stub/fastspi_stub.h
  │   │ └─   45.7 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   38.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   35.4 ms - fl/id_tracker.h
  │   │   │   └─   34.1 ms - fl/stl/mutex.h
  │   │   │     └─   34.0 ms - platforms/mutex.h
  │   │   │       └─   33.8 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   33.8 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    6.9 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   39.5 ms - platforms/stub/clockless_stub.h
  │     └─   39.4 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   14.1 ms - fl/channels/data.h
  │       │ └─   10.5 ms - fl/channels/config.h
  │       │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │       │   └─    1.8 ms - fl/chipsets/spi.h
  │       ├─   13.8 ms - fl/system/log.h
  │       │ └─   13.3 ms - fl/stl/strstream.h
  │       ├─    2.5 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.2 ms - fl/channels/driver.h
  ├─   44.7 ms - colorutils.h
  │ └─   44.2 ms - fl/gfx/colorutils.h
  │   ├─    9.4 ms - fl/gfx/blur.h
  │   │ └─    5.0 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
  ├─   25.1 ms - pixel_controller.h
  │ ├─   18.1 ms - pixel_iterator.h
  │ │ └─   18.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.7 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.8 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.7 ms - rgbw.h
  │   └─    2.5 ms - fl/gfx/rgbw.h
  └─   23.9 ms - pixeltypes.h
    ├─   20.0 ms - lib8tion.h
    │ ├─   10.4 ms - fl/math/math8.h
    │ │ ├─    5.5 ms - fl/math/intmap.h
    │ │ │ └─    4.3 ms - platforms/intmap.h
    │ │ ├─    2.6 ms - fl/math/scale8.h
    │ │ │ └─    2.6 ms - platforms/scale8.h
    │ │ │   └─    1.1 ms - platforms/shared/scale8.h
    │ │ └─    2.2 ms - platforms/math8.h
    │ │   └─    1.8 ms - platforms/shared/math8.h
    │ ├─    2.0 ms - fl/math/beat.h
    │ │ └─    1.1 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
    │ └─    0.5 ms - fl/math/time_functions.h
    └─    3.5 ms - crgb.hpp
fl/ui.h (133.8ms)
  ├─   84.6 ms - fl/stl/json.h
  │ └─   65.6 ms - fl/stl/json/types.h
  │   └─    7.9 ms - fl/stl/limits.h
  ├─   10.7 ms - fl/ui_impl.h
  │ └─   10.1 ms - platforms/ui_defs.h
  │   ├─    2.3 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  └─   10.6 ms - fl/asset.h
    └─    9.0 ms - fl/stl/url.h
chipsets.h (29.7ms)
  ├─   12.0 ms - fl/chipsets/ucs7604.h
  │ └─    9.2 ms - fl/chipsets/encoders/ucs7604.h
  ├─    7.2 ms - fl/chipsets/apa102.h
  ├─    1.8 ms - fl/chipsets/lpd880x.h
  ├─    0.9 ms - fl/chipsets/p9813.h
  └─    0.8 ms - fl/chipsets/encoders/ws2816.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1238.9 ms - Source: FastLED.h
  2.  1238.9 ms - Total Source: 
  3.   683.7 ms - Total ParseClass: 
  4.   546.1 ms - Source: fl/task/executor.h
  5.   453.3 ms - Source: fl/fastled.h
  6.   310.2 ms - Source: fl/task/scheduler.h
  7.   299.9 ms - Source: fl/stl/singleton.h
  8.   299.1 ms - Source: fl/stl/thread_local.h
  9.   297.8 ms - Source: fl/stl/thread.h
 10.   297.7 ms - Source: platforms/thread.h
 11.   297.7 ms - Source: platforms/stub/thread_stub.h
 12.   297.6 ms - Source: platforms/stub/thread_stub_stl.h
 13.   292.7 ms - Source: thread
 14.   250.8 ms - Source: crgb.h
 15.   249.3 ms - Source: fl/gfx/crgb.h
 16.   244.1 ms - Source: fl/math/ease.h
 17.   241.6 ms - Source: fl/math/fixed_point.h
 18.   232.4 ms - Total InstantiateFunction: 
 19.   221.3 ms - Source: fl/task/promise.h
 20.   192.3 ms - Total InstantiateClass: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1238.9ms)
    - fl/task/executor.h (546.1ms)
    - fl/fastled.h (453.3ms)
    - fl/task/scheduler.h (310.2ms)
    - fl/stl/singleton.h (299.9ms)
    - fl/stl/thread_local.h (299.1ms)
    - fl/stl/thread.h (297.8ms)
    - platforms/thread.h (297.7ms)
    - platforms/stub/thread_stub.h (297.7ms)
    - platforms/stub/thread_stub_stl.h (297.6ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1238.9ms)
2. Consider optimizing fl/task/executor.h (546.1ms)
3. Consider optimizing fl/fastled.h (453.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: 2

🤖 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/cpp_compat.h`:
- Around line 24-34: The current FL_STATIC_ASSERT_* dispatcher reconstructs the
expression via FL_STATIC_ASSERT_IMPL((__VA_ARGS__)), which turns
template-argument commas into the comma operator and silently miscompiles
predicates like fl::is_same<T,U>::value; to fix, collapse the dispatcher so
callers only get the 2-argument form: have the public dispatcher macro map all
forms to FL_STATIC_ASSERT_2 (remove or undefine
FL_STATIC_ASSERT_3..FL_STATIC_ASSERT_10) and add a clear header comment on
FL_STATIC_ASSERT_2/FL_STATIC_ASSERT_IMPL documenting that template-comma
predicates are not supported in this fallback; update references to
FL_STATIC_ASSERT_IMPL, FL_STATIC_ASSERT_2, and the removed
FL_STATIC_ASSERT_3..10 accordingly.

In `@src/platforms/arduino/io_arduino.hpp`:
- Around line 57-77: Change the read loop to keep draining Serial until
delimiter or timeout even after the output buffer is full: replace the current
while (len < outLen - 1) with an unconditional loop (e.g., while (true)) that
still checks Serial.available() and timeout; on each read (const int value =
Serial.read()), update start = millis() and if value < 0 break; convert to char
c and if c == delimiter break; only append to out and increment len while len <
outLen - 1, otherwise discard the character but continue looping to consume the
rest; leave the final out[len] = '\0' and return len. Use the existing symbols
(Serial, millis(), timeoutMs, delimiter, out, outLen, len, start) and implement
this change in the function containing the shown loop (readLineNative).
🪄 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: a681fc93-aa2d-48a6-8850-ad533bd6d382

📥 Commits

Reviewing files that changed from the base of the PR and between 2025933 and c12e15a.

📒 Files selected for processing (11)
  • ci/boards.py
  • src/cpp_compat.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • src/fl/stl/compiler_control.h
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/third_party/cq_kernel/kiss_fft.h
  • tests/fl/gfx/colorutils.cpp
💤 Files with no reviewable changes (3)
  • src/third_party/cq_kernel/kiss_fft.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/platforms/avr/attiny/clockless_blocking.h
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/fl/gfx/colorutils.h
  • ci/boards.py
  • src/fl/gfx/colorutils.cpp.hpp

Comment thread src/cpp_compat.h Resolved
Comment thread src/platforms/arduino/io_arduino.hpp Resolved
@zackees
zackees force-pushed the digispark-tiny-build-fix branch from c12e15a to 0e64975 Compare April 22, 2026 20:22
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 985.20ms

Top 5 Slowest Headers

  1. FastLED.h - 745.47ms
  2. fl/fastled.h - 318.75ms
  3. fl/task/executor.h - 238.81ms
  4. crgb.h - 176.70ms
  5. fl/gfx/crgb.h - 175.44ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (745.5ms)
⚠️ Header fl/fastled.h exceeds 150ms (318.7ms)
⚠️ Header fl/task/executor.h exceeds 150ms (238.8ms)
⚠️ Header crgb.h exceeds 150ms (176.7ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (175.4ms)
⚠️ Header fl/math/ease.h exceeds 150ms (171.1ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (169.3ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (125.1ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (116.4ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (115.7ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (114.7ms)
⚠️ Header platforms/thread.h exceeds 50ms (114.6ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (114.6ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (114.5ms)
⚠️ Header fl/ui.h exceeds 50ms (106.0ms)
⚠️ Header fl/task/promise.h exceeds 50ms (101.6ms)
⚠️ Header fl/stl/json.h exceeds 50ms (64.7ms)
⚠️ Header fl/stl/function.h exceeds 50ms (59.9ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (50.7ms)
⚠️ Template instantiation time is high (50.6%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,949.33 ms
Frontend Time:             14.32 ms (0.7%)
Backend Time:              192.81 ms (9.9%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    11444.58 ms (587.1%)
Templates                   497.38 ms ( 25.5%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1383.7 ms - FastLED.h (SLOW)
   741.5 ms - fl/task/executor.h (SLOW)
   412.4 ms - fl/fastled.h (SLOW)
   372.3 ms - fl/task/scheduler.h (SLOW)
   363.7 ms - fl/stl/singleton.h (SLOW)
   363.0 ms - fl/stl/thread_local.h (SLOW)
   362.0 ms - fl/stl/thread.h (SLOW)
   361.8 ms - platforms/thread.h (SLOW)
   361.8 ms - platforms/stub/thread_stub.h (SLOW)
   361.7 ms - platforms/stub/thread_stub_stl.h (SLOW)
   357.1 ms - fl/task/promise.h (SLOW)
   315.4 ms - fl/stl/function.h (SLOW)
   232.8 ms - crgb.h (SLOW)
   231.5 ms - fl/gfx/crgb.h (SLOW)
   227.2 ms - fl/math/ease.h (SLOW)
   225.4 ms - fl/math/fixed_point.h (SLOW)
   146.8 ms - fl/stl/vector.h (SLOW)
   110.8 ms - fl/math/math.h (SLOW)
   106.6 ms - fl/math/fixed_point/s4x12.h (SLOW)
   106.3 ms - fl/stl/undef.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1383.7ms)
  ├─  741.5 ms - fl/task/executor.h
  │ ├─  372.3 ms - fl/task/scheduler.h
  │ │ ├─  363.7 ms - fl/stl/singleton.h
  │ │ │ └─  363.0 ms - fl/stl/thread_local.h
  │ │ │   └─  362.0 ms - fl/stl/thread.h
  │ │ │     └─  361.8 ms - platforms/thread.h
  │ │ │       └─  361.8 ms - platforms/stub/thread_stub.h
  │ │ │         └─  361.7 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  356.3 ms - thread
  │ │ │             ├─  182.9 ms - std_thread.h
  │ │ │             └─  104.1 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
  │ ├─  357.1 ms - fl/task/promise.h
  │ │ ├─  315.4 ms - fl/stl/function.h
  │ │ │ ├─  146.8 ms - fl/stl/vector.h
  │ │ │ │ ├─  110.8 ms - fl/math/math.h
  │ │ │ │ │ └─  106.3 ms - fl/stl/undef.h
  │ │ │ │ │   └─  136.0 ms - stdlib.h
  │ │ │ │ │     ├─   66.9 ms - cstdlib
  │ │ │ │ │     │ └─  136.0 ms - stdlib.h
  │ │ │ │ │     │   ├─   66.9 ms - cstdlib
  │ │ │ │ │     │   └─    8.8 ms - types.h
  │ │ │ │ │     └─    8.8 ms - types.h
  │ │ │ │ │       ├─    8.8 ms - types.h
  │ │ │ │ │       │ ├─    8.8 ms - types.h
  │ │ │ │ │       │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │ │       │ ├─    1.5 ms - select.h
  │ │ │ │ │       │ └─    1.5 ms - endian.h
  │ │ │ │ │       ├─    1.8 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │ │       ├─    1.5 ms - select.h
  │ │ │ │ │       └─    1.5 ms - endian.h
  │ │ │ │ ├─   15.2 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   10.3 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    6.7 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─   11.6 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.3 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ │ ├─   78.1 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   50.6 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   45.6 ms - fl/stl/move.h
  │ │ │ │ ├─   23.0 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   22.2 ms - platforms/atomic.h
  │ │ │ │ │   └─   22.1 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ │ ├─   77.1 ms - fl/stl/variant.h
  │ │ │ │ └─   75.4 ms - fl/stl/new.h
  │ │ │ │   └─   75.4 ms - platforms/new.h
  │ │ │ │     └─   75.3 ms - platforms/shared/new.h
  │ │ │ │       └─   35.0 ms - new
  │ │ │ │         ├─   14.5 ms - c++config.h
  │ │ │ │         │ └─    4.0 ms - os_defines.h
  │ │ │ │         └─    0.5 ms - version.h
  │ │ │ ├─    4.9 ms - fl/stl/compiler_control.h
  │ │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │ │   └─    1.7 ms - fl/math/random.h
  │ │ │     └─    0.8 ms - fl/math/random8.h
  │ │ └─   37.0 ms - fl/stl/string.h
  │ │   ├─   10.9 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.9 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    7.2 ms - fl/stl/span.h
  │ │   │ └─    3.0 ms - fl/math/geometry.h
  │ │   ├─    4.4 ms - fl/stl/string_view.h
  │ │   └─    1.3 ms - fl/stl/optional.h
  │ ├─   10.0 ms - platforms/await.h
  │ │ └─    9.7 ms - platforms/coroutine_runtime.h
  │ │   └─    8.2 ms - fl/system/engine_events.h
  │ │     ├─    4.1 ms - fl/math/screenmap.h
  │ │     │ └─    3.0 ms - fl/stl/flat_map.h
  │ │     └─    2.7 ms - fl/math/xymap.h
  │ │       └─    0.7 ms - fl/math/lut.h
  │ └─    0.7 ms - fl/task/promise_result.h
  ├─  412.4 ms - fl/fastled.h
  │ ├─  232.8 ms - crgb.h
  │ │ ├─  231.5 ms - fl/gfx/crgb.h
  │ │ │ └─  227.2 ms - fl/math/ease.h
  │ │ │   └─  225.4 ms - fl/math/fixed_point.h
  │ │ │     ├─  106.6 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   89.9 ms - fl/math/sin32.h
  │ │ │     │ │ └─   87.3 ms - fl/math/simd.h
  │ │ │     │ │   └─   86.9 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   86.6 ms - platforms/simd.h
  │ │ │     │ ├─    0.9 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.7 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.7 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   14.6 ms - fl/math/fixed_point/s16x16.h
  │ │ │     └─   14.5 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.8 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   85.9 ms - platforms.h
  │ │ └─   85.9 ms - platforms/stub/fastled_stub.h
  │ │   ├─   53.6 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   53.6 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   47.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   45.9 ms - fl/id_tracker.h
  │ │   │   │   └─   45.0 ms - fl/stl/mutex.h
  │ │   │   │     └─   44.9 ms - platforms/mutex.h
  │ │   │   │       └─   44.8 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.3 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   32.2 ms - platforms/stub/clockless_stub.h
  │ │     └─   32.1 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   11.6 ms - fl/channels/data.h
  │ │       │ └─    8.6 ms - fl/channels/config.h
  │ │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.1 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.3 ms - fl/chipsets/spi.h
  │ │       ├─   11.0 ms - fl/system/log.h
  │ │       │ └─   10.5 ms - fl/stl/strstream.h
  │ │       ├─    2.2 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.5 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.5 ms - fl/gfx/crgb16.h
  │ ├─   20.2 ms - pixel_controller.h
  │ │ ├─   14.5 ms - pixel_iterator.h
  │ │ │ └─   14.4 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    4.1 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    3.2 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    2.6 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.0 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.2 ms - fl/gfx/rgbw.h
  │ └─   18.2 ms - pixeltypes.h
  │   ├─   15.1 ms - lib8tion.h
  │   │ ├─    7.7 ms - fl/math/math8.h
  │   │ │ ├─    4.0 ms - fl/math/intmap.h
  │   │ │ │ └─    3.1 ms - platforms/intmap.h
  │   │ │ ├─    2.0 ms - fl/math/scale8.h
  │   │ │ │ └─    1.9 ms - platforms/scale8.h
  │   │ │ │   └─    0.8 ms - platforms/shared/scale8.h
  │   │ │ └─    1.6 ms - platforms/math8.h
  │   │ │   └─    1.2 ms - platforms/shared/math8.h
  │   │ └─    1.6 ms - fl/math/beat.h
  │   │   └─    0.8 ms - fl/math/trig8.h
  │   │     └─    0.8 ms - platforms/trig8.h
  │   │       └─    0.7 ms - platforms/shared/trig8.h
  │   └─    2.7 ms - crgb.hpp
  ├─  105.9 ms - fl/ui.h
  │ ├─   64.8 ms - fl/stl/json.h
  │ │ └─   50.7 ms - fl/stl/json/types.h
  │ │   └─    6.2 ms - fl/stl/limits.h
  │ ├─    9.5 ms - fl/ui_impl.h
  │ │ └─    9.0 ms - platforms/ui_defs.h
  │ │   ├─    2.0 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.8 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  │ └─    8.3 ms - fl/asset.h
  │   └─    6.9 ms - fl/stl/url.h
  ├─   36.0 ms - fl/stl/stdint.h
  │ └─   35.7 ms - platforms/int.h
  │   └─   35.3 ms - platforms/shared/int.h
  │     └─   35.2 ms - platforms/shared/int_linux.h
  └─   24.4 ms - chipsets.h
    ├─    9.9 ms - fl/chipsets/ucs7604.h
    │ └─    7.5 ms - fl/chipsets/encoders/ucs7604.h
    ├─    5.8 ms - fl/chipsets/apa102.h
    ├─    1.5 ms - fl/chipsets/lpd880x.h
    ├─    0.8 ms - fl/chipsets/p9813.h
    └─    0.7 ms - fl/chipsets/encoders/ws2816.h
fl/task/executor.h (741.5ms)
  ├─  372.3 ms - fl/task/scheduler.h
  │ ├─  363.7 ms - fl/stl/singleton.h
  │ │ └─  363.0 ms - fl/stl/thread_local.h
  │ │   └─  362.0 ms - fl/stl/thread.h
  │ │     └─  361.8 ms - platforms/thread.h
  │ │       └─  361.8 ms - platforms/stub/thread_stub.h
  │ │         └─  361.7 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  356.3 ms - thread
  │ │             ├─  182.9 ms - std_thread.h
  │ │             │ ├─   54.1 ms - tuple
  │ │             │ ├─   51.0 ms - iosfwd
  │ │             │ ├─   19.7 ms - refwrap.h
  │ │             │ ├─    9.6 ms - gthr.h
  │ │             │ └─    5.4 ms - unique_ptr.h
  │ │             └─  104.1 ms - this_thread_sleep.h
  │ │               ├─   90.3 ms - chrono.h
  │ │               └─    3.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
  ├─  357.1 ms - fl/task/promise.h
  │ ├─  315.4 ms - fl/stl/function.h
  │ │ ├─  146.8 ms - fl/stl/vector.h
  │ │ │ ├─  110.8 ms - fl/math/math.h
  │ │ │ │ └─  106.3 ms - fl/stl/undef.h
  │ │ │ │   └─  136.0 ms - stdlib.h
  │ │ │ │     ├─   66.9 ms - cstdlib
  │ │ │ │     │ └─  136.0 ms - stdlib.h
  │ │ │ │     │   ├─   66.9 ms - cstdlib
  │ │ │ │     │   │ └─  136.0 ms - stdlib.h
  │ │ │ │     │   └─    8.8 ms - types.h
  │ │ │ │     │     ├─    8.8 ms - types.h
  │ │ │ │     │     ├─    1.8 ms - pthreadtypes.h
  │ │ │ │     │     ├─    1.5 ms - select.h
  │ │ │ │     │     └─    1.5 ms - endian.h
  │ │ │ │     └─    8.8 ms - types.h
  │ │ │ │       ├─    8.8 ms - types.h
  │ │ │ │       │ ├─    8.8 ms - types.h
  │ │ │ │       │ │ ├─    8.8 ms - types.h
  │ │ │ │       │ │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ │ ├─    1.5 ms - select.h
  │ │ │ │       │ │ └─    1.5 ms - endian.h
  │ │ │ │       │ ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │       │ ├─    1.5 ms - select.h
  │ │ │ │       │ └─    1.5 ms - endian.h
  │ │ │ │       ├─    1.8 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │       ├─    1.5 ms - select.h
  │ │ │ │       └─    1.5 ms - endian.h
  │ │ │ ├─   15.2 ms - fl/stl/allocator.h
  │ │ │ │ └─   10.3 ms - fl/stl/bitset.h
  │ │ │ │   └─    6.7 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ ├─   11.6 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.3 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.6 ms - fl/stl/functional.h
  │ │ ├─   78.1 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   50.6 ms - fl/stl/type_traits.h
  │ │ │ │ └─   45.6 ms - fl/stl/move.h
  │ │ │ ├─   23.0 ms - fl/stl/atomic.h
  │ │ │ │ └─   22.2 ms - platforms/atomic.h
  │ │ │ │   └─   22.1 ms - platforms/shared/atomic.h
  │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ ├─   77.1 ms - fl/stl/variant.h
  │ │ │ └─   75.4 ms - fl/stl/new.h
  │ │ │   └─   75.4 ms - platforms/new.h
  │ │ │     └─   75.3 ms - platforms/shared/new.h
  │ │ │       └─   35.0 ms - new
  │ │ │         ├─   14.5 ms - c++config.h
  │ │ │         │ └─    4.0 ms - os_defines.h
  │ │ │         │   └─    3.6 ms - features.h
  │ │ │         └─    0.5 ms - version.h
  │ │ ├─    4.9 ms - fl/stl/compiler_control.h
  │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │   └─    1.7 ms - fl/math/random.h
  │ │     └─    0.8 ms - fl/math/random8.h
  │ └─   37.0 ms - fl/stl/string.h
  │   ├─   10.9 ms - fl/stl/basic_string.h
  │   │ ├─    0.9 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    7.2 ms - fl/stl/span.h
  │   │ └─    3.0 ms - fl/math/geometry.h
  │   ├─    4.4 ms - fl/stl/string_view.h
  │   └─    1.3 ms - fl/stl/optional.h
  ├─   10.0 ms - platforms/await.h
  │ └─    9.7 ms - platforms/coroutine_runtime.h
  │   └─    8.2 ms - fl/system/engine_events.h
  │     ├─    4.1 ms - fl/math/screenmap.h
  │     │ └─    3.0 ms - fl/stl/flat_map.h
  │     └─    2.7 ms - fl/math/xymap.h
  │       └─    0.7 ms - fl/math/lut.h
  └─    0.7 ms - fl/task/promise_result.h
fl/fastled.h (412.4ms)
  ├─  232.8 ms - crgb.h
  │ ├─  231.5 ms - fl/gfx/crgb.h
  │ │ └─  227.2 ms - fl/math/ease.h
  │ │   └─  225.4 ms - fl/math/fixed_point.h
  │ │     ├─  106.6 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   89.9 ms - fl/math/sin32.h
  │ │     │ │ └─   87.3 ms - fl/math/simd.h
  │ │     │ │   └─   86.9 ms - fl/math/simd/types.h
  │ │     │ │     └─   86.6 ms - platforms/simd.h
  │ │     │ │       └─   86.5 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.7 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.7 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   14.6 ms - fl/math/fixed_point/s16x16.h
  │ │     └─   14.5 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.8 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   85.9 ms - platforms.h
  │ └─   85.9 ms - platforms/stub/fastled_stub.h
  │   ├─   53.6 ms - platforms/stub/fastspi_stub.h
  │   │ └─   53.6 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   47.9 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   45.9 ms - fl/id_tracker.h
  │   │   │   └─   45.0 ms - fl/stl/mutex.h
  │   │   │     └─   44.9 ms - platforms/mutex.h
  │   │   │       └─   44.8 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   44.8 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.3 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   32.2 ms - platforms/stub/clockless_stub.h
  │     └─   32.1 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   11.6 ms - fl/channels/data.h
  │       │ └─    8.6 ms - fl/channels/config.h
  │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.1 ms - fl/chipsets/led_timing.h
  │       │   └─    1.3 ms - fl/chipsets/spi.h
  │       ├─   11.0 ms - fl/system/log.h
  │       │ └─   10.5 ms - fl/stl/strstream.h
  │       ├─    2.2 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.5 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.5 ms - fl/gfx/crgb16.h
  ├─   20.2 ms - pixel_controller.h
  │ ├─   14.5 ms - pixel_iterator.h
  │ │ └─   14.4 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    4.1 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    3.2 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    2.6 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.0 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.2 ms - fl/gfx/rgbw.h
  └─   18.2 ms - pixeltypes.h
    ├─   15.1 ms - lib8tion.h
    │ ├─    7.7 ms - fl/math/math8.h
    │ │ ├─    4.0 ms - fl/math/intmap.h
    │ │ │ └─    3.1 ms - platforms/intmap.h
    │ │ ├─    2.0 ms - fl/math/scale8.h
    │ │ │ └─    1.9 ms - platforms/scale8.h
    │ │ │   └─    0.8 ms - platforms/shared/scale8.h
    │ │ └─    1.6 ms - platforms/math8.h
    │ │   └─    1.2 ms - platforms/shared/math8.h
    │ └─    1.6 ms - fl/math/beat.h
    │   └─    0.8 ms - fl/math/trig8.h
    │     └─    0.8 ms - platforms/trig8.h
    │       └─    0.7 ms - platforms/shared/trig8.h
    └─    2.7 ms - crgb.hpp
fl/ui.h (105.9ms)
  ├─   64.8 ms - fl/stl/json.h
  │ └─   50.7 ms - fl/stl/json/types.h
  │   └─    6.2 ms - fl/stl/limits.h
  ├─    9.5 ms - fl/ui_impl.h
  │ └─    9.0 ms - platforms/ui_defs.h
  │   ├─    2.0 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.8 ms - platforms/shared/ui/json/description.h
  │   ├─    0.8 ms - platforms/shared/ui/json/help.h
  │   └─    0.8 ms - platforms/shared/ui/json/number_field.h
  └─    8.3 ms - fl/asset.h
    └─    6.9 ms - fl/stl/url.h
fl/stl/stdint.h (36.0ms)
  └─   35.7 ms - platforms/int.h
    └─   35.3 ms - platforms/shared/int.h
      └─   35.2 ms - platforms/shared/int_linux.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1383.7 ms - Source: FastLED.h
  2.  1383.7 ms - Total Source: 
  3.   741.5 ms - Source: fl/task/executor.h
  4.   556.0 ms - Total ParseClass: 
  5.   412.4 ms - Source: fl/fastled.h
  6.   372.3 ms - Source: fl/task/scheduler.h
  7.   363.7 ms - Source: fl/stl/singleton.h
  8.   363.0 ms - Source: fl/stl/thread_local.h
  9.   362.0 ms - Source: fl/stl/thread.h
 10.   361.8 ms - Source: platforms/thread.h
 11.   361.8 ms - Source: platforms/stub/thread_stub.h
 12.   361.7 ms - Source: platforms/stub/thread_stub_stl.h
 13.   357.1 ms - Source: fl/task/promise.h
 14.   356.3 ms - Source: thread
 15.   315.4 ms - Source: fl/stl/function.h
 16.   232.8 ms - Source: crgb.h
 17.   231.5 ms - Source: fl/gfx/crgb.h
 18.   227.2 ms - Source: fl/math/ease.h
 19.   225.4 ms - Source: fl/math/fixed_point.h
 20.   186.2 ms - Total InstantiateFunction: 

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1383.7ms)
    - fl/task/executor.h (741.5ms)
    - fl/fastled.h (412.4ms)
    - fl/task/scheduler.h (372.3ms)
    - fl/stl/singleton.h (363.7ms)
    - fl/stl/thread_local.h (363.0ms)
    - fl/stl/thread.h (362.0ms)
    - platforms/thread.h (361.8ms)
    - platforms/stub/thread_stub.h (361.8ms)
    - platforms/stub/thread_stub_stl.h (361.7ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1383.7ms)
2. Consider optimizing fl/task/executor.h (741.5ms)
3. Consider optimizing fl/fastled.h (412.4ms)

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

@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.

♻️ Duplicate comments (1)
src/platforms/arduino/io_arduino.hpp (1)

47-86: ⚠️ Potential issue | 🟠 Major

ATtiny path still leaves overflow bytes (including the delimiter) in the RX buffer.

The loop exits as soon as len == outLen - 1, so for any line longer than the caller's buffer the delimiter and trailing bytes remain in Serial. The next readLineNative() will then return the leftover tail as if it were a fresh line — divergent from the non-ATtiny readStringUntil path, which always consumes through the delimiter. Recommend continuing to drain until delimiter/timeout and only storing while space remains.

Proposed fix
-    while (len < outLen - 1) {
+    while (true) {
         if (!Serial.available()) {
             if (millis() - start >= timeoutMs) {
                 break;
             }
             yield();
             continue;
         }
         const int value = Serial.read();
         if (value < 0) {
             break;
         }
         const char c = static_cast<char>(value);
         if (c == delimiter) {
             break;
         }
-        out[len++] = c;
+        if (len < outLen - 1) {
+            out[len++] = c;
+        }
         start = millis();
     }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/platforms/arduino/io_arduino.hpp` around lines 47 - 86, The ATtiny branch
of readLineNative leaves extra bytes (including the delimiter) in Serial when
the buffer fills; modify the read loop in readLineNative so that after len
reaches outLen-1 it continues reading and discarding incoming bytes until it
sees the delimiter or the timeout (timeoutMs) expires (still using
Serial.available(), Serial.read(), millis(), yield()), only writing into out
while len < outLen-1, and ensure the delimiter is consumed (not stored) before
returning the stored length.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@src/platforms/arduino/io_arduino.hpp`:
- Around line 47-86: The ATtiny branch of readLineNative leaves extra bytes
(including the delimiter) in Serial when the buffer fills; modify the read loop
in readLineNative so that after len reaches outLen-1 it continues reading and
discarding incoming bytes until it sees the delimiter or the timeout (timeoutMs)
expires (still using Serial.available(), Serial.read(), millis(), yield()), only
writing into out while len < outLen-1, and ensure the delimiter is consumed (not
stored) before returning the stored length.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f7fc17e8-af5a-48cd-afbf-05979f6f26c0

📥 Commits

Reviewing files that changed from the base of the PR and between c12e15a and 0e64975.

📒 Files selected for processing (17)
  • ci/boards.py
  • src/cpp_compat.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • src/fl/math/screenmap.cpp.hpp
  • src/fl/stl/compiler_control.h
  • src/fl/stl/function.h
  • src/fl/stl/pair.h
  • src/fl/stl/type_traits.h
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/platforms/compile_test.cpp.hpp
  • src/platforms/intmap.h
  • src/third_party/cq_kernel/kiss_fft.h
  • tests/fl/gfx/colorutils.cpp
💤 Files with no reviewable changes (3)
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/third_party/cq_kernel/kiss_fft.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
✅ Files skipped from review due to trivial changes (6)
  • src/fl/math/screenmap.cpp.hpp
  • src/fl/stl/type_traits.h
  • src/platforms/intmap.h
  • src/platforms/compile_test.cpp.hpp
  • src/fl/stl/function.h
  • src/fl/stl/pair.h
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/cpp_compat.h
  • src/fl/stl/compiler_control.h
  • src/fl/gfx/colorutils.cpp.hpp

@zackees
zackees force-pushed the digispark-tiny-build-fix branch from 0e64975 to 3993896 Compare April 22, 2026 20:31
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1235.44ms

Top 5 Slowest Headers

  1. FastLED.h - 940.90ms
  2. fl/fastled.h - 401.91ms
  3. fl/task/executor.h - 306.06ms
  4. crgb.h - 226.94ms
  5. fl/gfx/crgb.h - 225.50ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (940.9ms)
⚠️ Header fl/fastled.h exceeds 150ms (401.9ms)
⚠️ Header fl/task/executor.h exceeds 150ms (306.1ms)
⚠️ Header crgb.h exceeds 150ms (226.9ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (225.5ms)
⚠️ Header fl/math/ease.h exceeds 150ms (220.3ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (217.7ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (161.5ms)
⚠️ Header fl/stl/singleton.h exceeds 150ms (151.2ms)
⚠️ Header fl/stl/thread_local.h exceeds 150ms (150.4ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (149.1ms)
⚠️ Header platforms/thread.h exceeds 50ms (149.0ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (149.0ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (148.9ms)
⚠️ Header fl/ui.h exceeds 50ms (133.0ms)
⚠️ Header fl/task/promise.h exceeds 50ms (130.3ms)
⚠️ Header fl/stl/json.h exceeds 50ms (82.2ms)
⚠️ Header fl/stl/function.h exceeds 50ms (77.6ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (65.9ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (63.6ms)
⚠️ Header platforms.h exceeds 50ms (59.4ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (59.4ms)
⚠️ Template instantiation time is high (53.7%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,466.65 ms
Frontend Time:             18.71 ms (1.3%)
Backend Time:              81.73 ms (5.6%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                     8487.08 ms (578.7%)
Templates                   665.37 ms ( 45.4%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1138.8 ms - FastLED.h (SLOW)
   464.6 ms - fl/fastled.h (SLOW)
   443.2 ms - fl/task/executor.h (SLOW)
   285.8 ms - crgb.h (SLOW)
   284.3 ms - fl/gfx/crgb.h (SLOW)
   279.3 ms - fl/math/ease.h (SLOW)
   276.7 ms - fl/math/fixed_point.h (SLOW)
   235.1 ms - fl/task/promise.h (SLOW)
   187.9 ms - fl/task/scheduler.h (SLOW)
   183.0 ms - fl/stl/function.h (SLOW)
   177.7 ms - fl/stl/singleton.h (SLOW)
   176.9 ms - fl/stl/thread_local.h (SLOW)
   175.7 ms - fl/stl/thread.h (SLOW)
   175.6 ms - platforms/thread.h (SLOW)
   175.6 ms - platforms/stub/thread_stub.h (SLOW)
   175.5 ms - platforms/stub/thread_stub_stl.h (SLOW)
   129.6 ms - fl/ui.h (SLOW)
   123.8 ms - fl/math/fixed_point/s4x12.h (SLOW)
   102.3 ms - fl/math/sin32.h (SLOW)
    99.0 ms - fl/math/simd.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1138.8ms)
  ├─  464.6 ms - fl/fastled.h
  │ ├─  285.8 ms - crgb.h
  │ │ ├─  284.3 ms - fl/gfx/crgb.h
  │ │ │ └─  279.3 ms - fl/math/ease.h
  │ │ │   └─  276.7 ms - fl/math/fixed_point.h
  │ │ │     ├─  123.8 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  102.3 ms - fl/math/sin32.h
  │ │ │     │ │ └─   99.0 ms - fl/math/simd.h
  │ │ │     │ │   └─   98.4 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   98.0 ms - platforms/simd.h
  │ │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.4 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   19.1 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   18.9 ms - fl/math/fixed_point/s8x8.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   62.4 ms - platforms.h
  │ │ └─   62.3 ms - platforms/stub/fastled_stub.h
  │ │   ├─   39.2 ms - platforms/stub/clockless_stub.h
  │ │   │ └─   39.1 ms - platforms/stub/clockless_channel_stub.h
  │ │   │   ├─   13.8 ms - fl/channels/data.h
  │ │   │   │ └─   10.3 ms - fl/channels/config.h
  │ │   │   │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │ │   │   │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │ │   │   │   └─    1.8 ms - fl/chipsets/spi.h
  │ │   │   ├─   13.8 ms - fl/system/log.h
  │ │   │   │ └─   13.3 ms - fl/stl/strstream.h
  │ │   │   ├─    2.6 ms - fl/channels/manager.h
  │ │   │   ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │   │   └─    1.1 ms - fl/channels/driver.h
  │ │   └─   23.1 ms - platforms/stub/fastspi_stub.h
  │ │     └─   23.0 ms - platforms/stub/fastspi_stub_generic.h
  │ │       ├─   16.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │       │ └─   14.1 ms - fl/id_tracker.h
  │ │       │   └─   13.0 ms - fl/stl/mutex.h
  │ │       │     └─   12.9 ms - platforms/mutex.h
  │ │       │       └─   12.7 ms - platforms/stub/mutex_stub.h
  │ │       └─    6.2 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ ├─   44.3 ms - colorutils.h
  │ │ └─   43.9 ms - fl/gfx/colorutils.h
  │ │   ├─    9.2 ms - fl/gfx/blur.h
  │ │   │ └─    4.9 ms - fl/gfx/canvas.h
  │ │   │   └─    3.0 ms - fl/math/alpha.h
  │ │   ├─    3.4 ms - fl/gfx/fill.h
  │ │   └─    1.9 ms - fl/gfx/crgb16.h
  │ ├─   24.4 ms - pixel_controller.h
  │ │ ├─   17.6 ms - pixel_iterator.h
  │ │ │ └─   17.5 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.6 ms - rgbw.h
  │ │   └─    2.4 ms - fl/gfx/rgbw.h
  │ └─   23.5 ms - pixeltypes.h
  │   ├─   19.7 ms - lib8tion.h
  │   │ ├─   10.1 ms - fl/math/math8.h
  │   │ │ ├─    5.4 ms - fl/math/intmap.h
  │   │ │ │ └─    4.3 ms - platforms/intmap.h
  │   │ │ ├─    2.5 ms - fl/math/scale8.h
  │   │ │ │ └─    2.5 ms - platforms/scale8.h
  │   │ │ │   └─    1.0 ms - platforms/shared/scale8.h
  │   │ │ └─    2.1 ms - platforms/math8.h
  │   │ │   └─    1.7 ms - platforms/shared/math8.h
  │   │ ├─    2.0 ms - fl/math/beat.h
  │   │ │ └─    1.1 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
  │   │ └─    0.5 ms - fl/math/time_functions.h
  │   └─    3.4 ms - crgb.hpp
  ├─  443.2 ms - fl/task/executor.h
  │ ├─  235.1 ms - fl/task/promise.h
  │ │ ├─  183.0 ms - fl/stl/function.h
  │ │ │ ├─   83.9 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   69.8 ms - fl/stl/atomic.h
  │ │ │ │ │ └─   68.7 ms - platforms/atomic.h
  │ │ │ │ │   └─   68.6 ms - platforms/shared/atomic.h
  │ │ │ │ ├─    8.8 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─    2.1 ms - fl/stl/move.h
  │ │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ │ ├─   75.9 ms - fl/stl/vector.h
  │ │ │ │ ├─   44.6 ms - fl/math/math.h
  │ │ │ │ │ └─   38.7 ms - fl/stl/undef.h
  │ │ │ │ │   └─   74.8 ms - stdlib.h
  │ │ │ │ │     ├─   37.9 ms - cstdlib
  │ │ │ │ │     │ └─   74.8 ms - stdlib.h
  │ │ │ │ │     │   ├─   37.9 ms - cstdlib
  │ │ │ │ │     │   ├─   10.3 ms - types.h
  │ │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │ │     ├─   10.3 ms - types.h
  │ │ │ │ │     │ ├─   10.3 ms - types.h
  │ │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    1.8 ms - endian.h
  │ │ │ │ │     │ │ └─    1.7 ms - select.h
  │ │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    1.8 ms - endian.h
  │ │ │ │ │     │ └─    1.7 ms - select.h
  │ │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ │ ├─   19.4 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
  │ │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ │ ├─    0.7 ms - fl/stl/functional.h
  │ │ │ │ └─    0.6 ms - fl/stl/initializer_list.h
  │ │ │ ├─   11.5 ms - fl/stl/variant.h
  │ │ │ │ └─    9.5 ms - fl/stl/new.h
  │ │ │ │   └─    9.5 ms - platforms/new.h
  │ │ │ │     └─    9.5 ms - platforms/shared/new.h
  │ │ │ │       └─    8.8 ms - new
  │ │ │ │         ├─    5.7 ms - c++config.h
  │ │ │ │         │ └─    4.3 ms - os_defines.h
  │ │ │ │         └─    0.5 ms - version.h
  │ │ │ ├─    5.0 ms - fl/stl/algorithm.h
  │ │ │ │ └─    2.1 ms - fl/math/random.h
  │ │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ │ └─    1.6 ms - fl/stl/pair.h
  │ │ └─   46.5 ms - fl/stl/string.h
  │ │   ├─   13.4 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.2 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
  │ ├─  187.9 ms - fl/task/scheduler.h
  │ │ ├─  177.7 ms - fl/stl/singleton.h
  │ │ │ └─  176.9 ms - fl/stl/thread_local.h
  │ │ │   └─  175.7 ms - fl/stl/thread.h
  │ │ │     └─  175.6 ms - platforms/thread.h
  │ │ │       └─  175.6 ms - platforms/stub/thread_stub.h
  │ │ │         └─  175.5 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  174.3 ms - thread
  │ │ │             ├─  107.9 ms - std_thread.h
  │ │ │             └─   64.4 ms - this_thread_sleep.h
  │ │ └─    9.3 ms - fl/task/task.h
  │ │   └─    3.8 ms - fl/trace.h
  │ │     ├─    2.3 ms - fl/stl/chrono.h
  │ │     └─    1.1 ms - fl/stl/tuple.h
  │ ├─   17.3 ms - platforms/await.h
  │ │ └─   16.8 ms - platforms/coroutine_runtime.h
  │ │   └─   14.9 ms - fl/system/engine_events.h
  │ │     ├─    6.5 ms - fl/math/screenmap.h
  │ │     │ └─    4.8 ms - fl/stl/flat_map.h
  │ │     └─    3.8 ms - fl/math/xymap.h
  │ │       └─    0.9 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  129.6 ms - fl/ui.h
  │ ├─   80.6 ms - fl/stl/json.h
  │ │ └─   62.8 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.9 ms - platforms/shared/ui/json/number_field.h
  │ └─   10.4 ms - fl/asset.h
  │   └─    8.8 ms - fl/stl/url.h
  ├─   30.5 ms - chipsets.h
  │ ├─   12.4 ms - fl/chipsets/ucs7604.h
  │ │ └─    9.4 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    7.1 ms - fl/chipsets/apa102.h
  │ ├─    1.8 ms - fl/chipsets/lpd880x.h
  │ ├─    1.1 ms - fl/chipsets/encoders/ws2816.h
  │ └─    0.9 ms - fl/chipsets/p9813.h
  └─   24.1 ms - fl/audio/audio_processor.h
    ├─    6.0 ms - fl/audio/audio_context.h
    │ └─    1.7 ms - fl/audio/fft/fft.h
    ├─    2.3 ms - fl/audio/detector/vibe.h
    └─    1.3 ms - fl/audio/signal_conditioner.h
fl/fastled.h (464.6ms)
  ├─  285.8 ms - crgb.h
  │ ├─  284.3 ms - fl/gfx/crgb.h
  │ │ └─  279.3 ms - fl/math/ease.h
  │ │   └─  276.7 ms - fl/math/fixed_point.h
  │ │     ├─  123.8 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  102.3 ms - fl/math/sin32.h
  │ │     │ │ └─   99.0 ms - fl/math/simd.h
  │ │     │ │   └─   98.4 ms - fl/math/simd/types.h
  │ │     │ │     └─   98.0 ms - platforms/simd.h
  │ │     │ │       └─   98.0 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   19.4 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   19.1 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   18.9 ms - fl/math/fixed_point/s8x8.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   62.4 ms - platforms.h
  │ └─   62.3 ms - platforms/stub/fastled_stub.h
  │   ├─   39.2 ms - platforms/stub/clockless_stub.h
  │   │ └─   39.1 ms - platforms/stub/clockless_channel_stub.h
  │   │   ├─   13.8 ms - fl/channels/data.h
  │   │   │ └─   10.3 ms - fl/channels/config.h
  │   │   │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │   │   │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │   │   │   └─    1.8 ms - fl/chipsets/spi.h
  │   │   ├─   13.8 ms - fl/system/log.h
  │   │   │ └─   13.3 ms - fl/stl/strstream.h
  │   │   ├─    2.6 ms - fl/channels/manager.h
  │   │   ├─    1.6 ms - fl/stl/weak_ptr.h
  │   │   └─    1.1 ms - fl/channels/driver.h
  │   └─   23.1 ms - platforms/stub/fastspi_stub.h
  │     └─   23.0 ms - platforms/stub/fastspi_stub_generic.h
  │       ├─   16.3 ms - platforms/shared/active_strip_data/active_strip_data.h
  │       │ └─   14.1 ms - fl/id_tracker.h
  │       │   └─   13.0 ms - fl/stl/mutex.h
  │       │     └─   12.9 ms - platforms/mutex.h
  │       │       └─   12.7 ms - platforms/stub/mutex_stub.h
  │       │         └─   12.7 ms - platforms/stub/mutex_stub_stl.h
  │       └─    6.2 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  ├─   44.3 ms - colorutils.h
  │ └─   43.9 ms - fl/gfx/colorutils.h
  │   ├─    9.2 ms - fl/gfx/blur.h
  │   │ └─    4.9 ms - fl/gfx/canvas.h
  │   │   └─    3.0 ms - fl/math/alpha.h
  │   ├─    3.4 ms - fl/gfx/fill.h
  │   └─    1.9 ms - fl/gfx/crgb16.h
  ├─   24.4 ms - pixel_controller.h
  │ ├─   17.6 ms - pixel_iterator.h
  │ │ └─   17.5 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.6 ms - rgbw.h
  │   └─    2.4 ms - fl/gfx/rgbw.h
  └─   23.5 ms - pixeltypes.h
    ├─   19.7 ms - lib8tion.h
    │ ├─   10.1 ms - fl/math/math8.h
    │ │ ├─    5.4 ms - fl/math/intmap.h
    │ │ │ └─    4.3 ms - platforms/intmap.h
    │ │ ├─    2.5 ms - fl/math/scale8.h
    │ │ │ └─    2.5 ms - platforms/scale8.h
    │ │ │   └─    1.0 ms - platforms/shared/scale8.h
    │ │ └─    2.1 ms - platforms/math8.h
    │ │   └─    1.7 ms - platforms/shared/math8.h
    │ ├─    2.0 ms - fl/math/beat.h
    │ │ └─    1.1 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
    │ └─    0.5 ms - fl/math/time_functions.h
    └─    3.4 ms - crgb.hpp
fl/task/executor.h (443.2ms)
  ├─  235.1 ms - fl/task/promise.h
  │ ├─  183.0 ms - fl/stl/function.h
  │ │ ├─   83.9 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   69.8 ms - fl/stl/atomic.h
  │ │ │ │ └─   68.7 ms - platforms/atomic.h
  │ │ │ │   └─   68.6 ms - platforms/shared/atomic.h
  │ │ │ ├─    8.8 ms - fl/stl/type_traits.h
  │ │ │ │ └─    2.1 ms - fl/stl/move.h
  │ │ │ └─    0.7 ms - fl/stl/bit_cast.h
  │ │ ├─   75.9 ms - fl/stl/vector.h
  │ │ │ ├─   44.6 ms - fl/math/math.h
  │ │ │ │ └─   38.7 ms - fl/stl/undef.h
  │ │ │ │   └─   74.8 ms - stdlib.h
  │ │ │ │     ├─   37.9 ms - cstdlib
  │ │ │ │     │ └─   74.8 ms - stdlib.h
  │ │ │ │     │   ├─   37.9 ms - cstdlib
  │ │ │ │     │   │ └─   74.8 ms - stdlib.h
  │ │ │ │     │   ├─   10.3 ms - types.h
  │ │ │ │     │   │ ├─   10.3 ms - types.h
  │ │ │ │     │   │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    1.8 ms - endian.h
  │ │ │ │     │   │ └─    1.7 ms - select.h
  │ │ │ │     │   └─    0.5 ms - floatn.h
  │ │ │ │     ├─   10.3 ms - types.h
  │ │ │ │     │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.8 ms - endian.h
  │ │ │ │     │ │ │ └─    1.7 ms - select.h
  │ │ │ │     │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    1.8 ms - endian.h
  │ │ │ │     │ │ └─    1.7 ms - select.h
  │ │ │ │     │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.4 ms - thread-shared-types.h
  │ │ │ │     │ ├─    1.8 ms - endian.h
  │ │ │ │     │ └─    1.7 ms - select.h
  │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ ├─   19.4 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
  │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ ├─    0.7 ms - fl/stl/functional.h
  │ │ │ └─    0.6 ms - fl/stl/initializer_list.h
  │ │ ├─   11.5 ms - fl/stl/variant.h
  │ │ │ └─    9.5 ms - fl/stl/new.h
  │ │ │   └─    9.5 ms - platforms/new.h
  │ │ │     └─    9.5 ms - platforms/shared/new.h
  │ │ │       └─    8.8 ms - new
  │ │ │         ├─    5.7 ms - c++config.h
  │ │ │         │ └─    4.3 ms - os_defines.h
  │ │ │         │   └─    3.9 ms - features.h
  │ │ │         └─    0.5 ms - version.h
  │ │ ├─    5.0 ms - fl/stl/algorithm.h
  │ │ │ └─    2.1 ms - fl/math/random.h
  │ │ │   └─    1.0 ms - fl/math/random8.h
  │ │ └─    1.6 ms - fl/stl/pair.h
  │ └─   46.5 ms - fl/stl/string.h
  │   ├─   13.4 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.2 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
  ├─  187.9 ms - fl/task/scheduler.h
  │ ├─  177.7 ms - fl/stl/singleton.h
  │ │ └─  176.9 ms - fl/stl/thread_local.h
  │ │   └─  175.7 ms - fl/stl/thread.h
  │ │     └─  175.6 ms - platforms/thread.h
  │ │       └─  175.6 ms - platforms/stub/thread_stub.h
  │ │         └─  175.5 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  174.3 ms - thread
  │ │             ├─  107.9 ms - std_thread.h
  │ │             │ ├─   40.6 ms - tuple
  │ │             │ ├─   13.9 ms - refwrap.h
  │ │             │ ├─   13.6 ms - iosfwd
  │ │             │ ├─   11.9 ms - gthr.h
  │ │             │ └─    6.3 ms - unique_ptr.h
  │ │             └─   64.4 ms - this_thread_sleep.h
  │ │               ├─   59.6 ms - chrono.h
  │ │               └─    3.6 ms - cerrno
  │ └─    9.3 ms - fl/task/task.h
  │   └─    3.8 ms - fl/trace.h
  │     ├─    2.3 ms - fl/stl/chrono.h
  │     └─    1.1 ms - fl/stl/tuple.h
  ├─   17.3 ms - platforms/await.h
  │ └─   16.8 ms - platforms/coroutine_runtime.h
  │   └─   14.9 ms - fl/system/engine_events.h
  │     ├─    6.5 ms - fl/math/screenmap.h
  │     │ └─    4.8 ms - fl/stl/flat_map.h
  │     └─    3.8 ms - fl/math/xymap.h
  │       └─    0.9 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/ui.h (129.6ms)
  ├─   80.6 ms - fl/stl/json.h
  │ └─   62.8 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │   └─    0.9 ms - platforms/shared/ui/json/number_field.h
  └─   10.4 ms - fl/asset.h
    └─    8.8 ms - fl/stl/url.h
chipsets.h (30.5ms)
  ├─   12.4 ms - fl/chipsets/ucs7604.h
  │ └─    9.4 ms - fl/chipsets/encoders/ucs7604.h
  ├─    7.1 ms - fl/chipsets/apa102.h
  ├─    1.8 ms - fl/chipsets/lpd880x.h
  ├─    1.1 ms - fl/chipsets/encoders/ws2816.h
  └─    0.9 ms - fl/chipsets/p9813.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1138.8 ms - Source: FastLED.h
  2.  1138.8 ms - Total Source: 
  3.   736.9 ms - Total ParseClass: 
  4.   464.6 ms - Source: fl/fastled.h
  5.   443.2 ms - Source: fl/task/executor.h
  6.   285.8 ms - Source: crgb.h
  7.   284.3 ms - Source: fl/gfx/crgb.h
  8.   279.3 ms - Source: fl/math/ease.h
  9.   276.7 ms - Source: fl/math/fixed_point.h
 10.   235.1 ms - Source: fl/task/promise.h
 11.   232.7 ms - Total InstantiateFunction: 
 12.   188.8 ms - Total InstantiateClass: 
 13.   187.9 ms - Source: fl/task/scheduler.h
 14.   183.0 ms - Source: fl/stl/function.h
 15.   177.7 ms - Source: fl/stl/singleton.h
 16.   176.9 ms - Source: fl/stl/thread_local.h
 17.   175.7 ms - Source: fl/stl/thread.h
 18.   175.6 ms - Source: platforms/thread.h
 19.   175.6 ms - Source: platforms/stub/thread_stub.h
 20.   175.5 ms - Source: platforms/stub/thread_stub_stl.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1138.8ms)
    - fl/fastled.h (464.6ms)
    - fl/task/executor.h (443.2ms)
    - crgb.h (285.8ms)
    - fl/gfx/crgb.h (284.3ms)
    - fl/math/ease.h (279.3ms)
    - fl/math/fixed_point.h (276.7ms)
    - fl/task/promise.h (235.1ms)
    - fl/task/scheduler.h (187.9ms)
    - fl/stl/function.h (183.0ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1138.8ms)
2. Consider optimizing fl/fastled.h (464.6ms)
3. Consider optimizing fl/task/executor.h (443.2ms)

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

@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: 2

🧹 Nitpick comments (2)
src/fl/stl/compiler_control.h (1)

527-529: Narrowing the fallthrough attribute gating looks correct; update stale comment.

Restricting __attribute__((fallthrough)) to Clang or GCC ≥ 7 correctly avoids the attribute on old AVR GCC (< 4.9 / < 7) where it isn't recognized, which matches the PR's Digispark fix. However, the comment on line 528 still reads "GCC 7+ / Clang 10+" — the condition accepts any Clang, not just 10+. Consider updating the comment for accuracy.

📝 Suggested comment tweak
 `#elif` defined(FL_IS_CLANG) || (defined(FL_IS_GCC) && FL_GCC_VERSION >= 700)
-  // GCC 7+ / Clang 10+: Use fallthrough attribute
+  // GCC 7+ / Clang: Use fallthrough attribute
   `#define` FL_FALLTHROUGH __attribute__((fallthrough))
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/compiler_control.h` around lines 527 - 529, Update the stale
comment above the FL_FALLTHROUGH macro: the preprocessor conditional is "#elif
defined(FL_IS_CLANG) || (defined(FL_IS_GCC) && FL_GCC_VERSION >= 700)" which
enables __attribute__((fallthrough)) for any Clang and GCC >= 7, so change the
comment text (currently "GCC 7+ / Clang 10+: Use fallthrough attribute") to
accurately reflect that it applies to Clang (all versions detected by
FL_IS_CLANG) and GCC 7+, e.g. "GCC 7+ / Clang: Use fallthrough attribute" or
similar, leaving the `#define` FL_FALLTHROUGH __attribute__((fallthrough))
unchanged.
src/cpp_compat.h (1)

24-77: Document the 16-token limit and template-comma assumption.

The dispatcher silently misbehaves in two subtle ways worth a header comment, so future callers don't get confused when an AVR build suddenly breaks:

  1. FL_STATIC_ASSERT_SELECT only enumerates 16 slots, so a static_assert whose (expression + message) contains more than 15 top-level commas falls off the list and expands to an undefined identifier rather than a readable diagnostic.
  2. The template-comma workaround relies on the extra outer parens in FL_STATIC_ASSERT_IMPL((FL_STATIC_ASSERT_EXPR(__VA_ARGS__))) to preserve template-arg grouping at parse time. This works when the name being instantiated is already known to the compiler as a template (typical case), but a bare a < b, c > d–style predicate with no template name in scope would still be parsed as a comma expression. Worth calling out so nobody "simplifies" those outer parens away later.

A short block comment above line 24 noting both would be enough; no code change required.

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

In `@src/cpp_compat.h` around lines 24 - 77, Add a short header comment above the
static_assert emulation explaining two limitations: (1) FL_STATIC_ASSERT_SELECT
only supports up to 16 macro slots (so expressions+message containing more than
15 top‑level commas will fall off the selector and yield a confusing expansion),
and (2) the outer parentheses in
FL_STATIC_ASSERT_IMPL((FL_STATIC_ASSERT_EXPR(__VA_ARGS__))) are required to
preserve template-argument grouping for template-style predicates — a bare
expression like `a < b, c > d` with no template name in scope can still be
parsed as a comma expression if those parens are removed. Reference the macros
FL_STATIC_ASSERT_SELECT, FL_STATIC_ASSERT_EXPR, FL_STATIC_ASSERT_IMPL and the
redefined static_assert in the comment so future maintainers don’t accidentally
“simplify” the parens or increase argument counts without addressing these
limitations.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@ci/boards.py`:
- Around line 1066-1077: DIGISPARK_TINY currently lacks explicit MCU metadata so
get_mcu_target() can't detect the ATtiny85; update the Board declaration for
DIGISPARK_TINY to include board_build_mcu="attiny85" as an argument to the
Board(...) call so target-based filtering and MCU identification work correctly
(see DIGISPARK_TINY and get_mcu_target()).

In `@src/platforms/arduino/io_arduino.hpp`:
- Around line 48-87: The guard that checks outLen (outLen <= 0) must be hoisted
so both conditional branches are protected: move the outLen validation above the
`#if` defined(FL_IS_AVR_ATTINY) block (or add the same early-return check before
using outLen in the non-ATtiny branch) to immediately return 0 when outLen <= 0;
this prevents computing a negative len and passing it to memcpy in the
non-ATtiny path where Serial.readStringUntil(delimiter), line.length(),
memcpy(out, line.c_str(), len) and out[len] are used.

---

Nitpick comments:
In `@src/cpp_compat.h`:
- Around line 24-77: Add a short header comment above the static_assert
emulation explaining two limitations: (1) FL_STATIC_ASSERT_SELECT only supports
up to 16 macro slots (so expressions+message containing more than 15 top‑level
commas will fall off the selector and yield a confusing expansion), and (2) the
outer parentheses in FL_STATIC_ASSERT_IMPL((FL_STATIC_ASSERT_EXPR(__VA_ARGS__)))
are required to preserve template-argument grouping for template-style
predicates — a bare expression like `a < b, c > d` with no template name in
scope can still be parsed as a comma expression if those parens are removed.
Reference the macros FL_STATIC_ASSERT_SELECT, FL_STATIC_ASSERT_EXPR,
FL_STATIC_ASSERT_IMPL and the redefined static_assert in the comment so future
maintainers don’t accidentally “simplify” the parens or increase argument counts
without addressing these limitations.

In `@src/fl/stl/compiler_control.h`:
- Around line 527-529: Update the stale comment above the FL_FALLTHROUGH macro:
the preprocessor conditional is "#elif defined(FL_IS_CLANG) ||
(defined(FL_IS_GCC) && FL_GCC_VERSION >= 700)" which enables
__attribute__((fallthrough)) for any Clang and GCC >= 7, so change the comment
text (currently "GCC 7+ / Clang 10+: Use fallthrough attribute") to accurately
reflect that it applies to Clang (all versions detected by FL_IS_CLANG) and GCC
7+, e.g. "GCC 7+ / Clang: Use fallthrough attribute" or similar, leaving the
`#define` FL_FALLTHROUGH __attribute__((fallthrough)) unchanged.
🪄 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: 8ff015e0-fae1-4517-8711-0ccfb49fc102

📥 Commits

Reviewing files that changed from the base of the PR and between 0e64975 and 3993896.

📒 Files selected for processing (17)
  • ci/boards.py
  • src/cpp_compat.h
  • src/fl/gfx/colorutils.cpp.hpp
  • src/fl/gfx/colorutils.h
  • src/fl/math/screenmap.cpp.hpp
  • src/fl/stl/compiler_control.h
  • src/fl/stl/function.h
  • src/fl/stl/pair.h
  • src/fl/stl/type_traits.h
  • src/platforms/adafruit/clockless.cpp.hpp
  • src/platforms/arduino/io_arduino.hpp
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/platforms/compile_test.cpp.hpp
  • src/platforms/intmap.h
  • src/third_party/cq_kernel/kiss_fft.h
  • tests/fl/gfx/colorutils.cpp
💤 Files with no reviewable changes (3)
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/third_party/cq_kernel/kiss_fft.h
  • src/platforms/avr/attiny/clockless_blocking.h
✅ Files skipped from review due to trivial changes (7)
  • src/fl/math/screenmap.cpp.hpp
  • src/platforms/compile_test.cpp.hpp
  • src/fl/stl/type_traits.h
  • src/fl/stl/function.h
  • src/platforms/intmap.h
  • src/fl/stl/pair.h
  • src/fl/gfx/colorutils.cpp.hpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/platforms/adafruit/clockless.cpp.hpp

Comment thread ci/boards.py
Comment on lines +1066 to +1077
DIGISPARK_TINY = Board(
board_name="digispark-tiny",
# PlatformIO only publishes Digistump core 1.7.2 and avr-gcc 5.4/7.3
# packages, so the Arduino IDE 1.6.7 + avr-g++ 4.8.1 issue environment
# cannot be pinned through platform_packages here.
platform="atmelavr",
platform_packages=(
"\n\[email protected]\n\[email protected]"
),
framework="arduino",
build_flags=["-std=gnu++11"],
)

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: Inspect MCU target inference and usages for board/sketch filtering.
cat -n ci/boards.py | sed -n '361,381p;1066,1077p'
rg -n -C3 '\bget_mcu_target\s*\('

Repository: FastLED/FastLED

Length of output: 3482


🏁 Script executed:

#!/bin/bash
# Get the complete get_mcu_target method
cat -n ci/boards.py | sed -n '361,400p'

Repository: FastLED/FastLED

Length of output: 1809


🏁 Script executed:

#!/bin/bash
# Check what get_mcu_target returns for boards without explicit board_build_mcu
# Search for all board definitions that use board_build_mcu="attiny" to understand the pattern
rg -n 'board_build_mcu\s*=' ci/boards.py | head -20

Repository: FastLED/FastLED

Length of output: 174


🏁 Script executed:

#!/bin/bash
# Check sketch_filter.py to see how get_mcu_target() result is used
cat -n ci/compiler/sketch_filter.py | sed -n '340,370p'

Repository: FastLED/FastLED

Length of output: 1136


🏁 Script executed:

#!/bin/bash
# Search for sketches or configs that use target filters
rg -n 'target\s*:' --type-list | head -5
fd . examples -name "*.txt" -o -name "filter_*" | head -20

Repository: FastLED/FastLED

Length of output: 679


🏁 Script executed:

#!/bin/bash
# Check for any references to digispark in the codebase
rg -n 'digispark\|digistump' -i ci/ examples/ 2>/dev/null | head -20

Repository: FastLED/FastLED

Length of output: 41


🏁 Script executed:

#!/antml:bin/bash
# Check if there are other ATtiny boards for comparison
rg -n 'board_name.*tiny' ci/boards.py

Repository: FastLED/FastLED

Length of output: 438


🏁 Script executed:

#!/bin/bash
# Search for sketch configs or filter specifications
find examples -type f -name "*.txt" -o -name "*filter*" | head -20

Repository: FastLED/FastLED

Length of output: 95


🏁 Script executed:

#!/bin/bash
# Look for target filter usage in examples
rg 'target\s*:' examples/ 2>/dev/null | head -20

Repository: FastLED/FastLED

Length of output: 147


🏁 Script executed:

#!/bin/bash
# Check documentation or comments about Digispark and ATtiny85
rg -n 'digispark|digistump' -i ci/boards.py -A 5 -B 2

Repository: FastLED/FastLED

Length of output: 920


Add board_build_mcu="attiny85" to preserve MCU target metadata for filtering.

DIGISPARK_TINY with board_name="digispark-tiny" does not match the attiny* prefix pattern checked in get_mcu_target(), so it returns None. This breaks target-based filtering and prevents proper MCU identification. The Digispark board uses an ATtiny85 MCU (as indicated by the Digistump framework reference and memory classification), and should explicitly declare it.

Suggested fix
 DIGISPARK_TINY = Board(
     board_name="digispark-tiny",
+    board_build_mcu="attiny85",
     # PlatformIO only publishes Digistump core 1.7.2 and avr-gcc 5.4/7.3
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ci/boards.py` around lines 1066 - 1077, DIGISPARK_TINY currently lacks
explicit MCU metadata so get_mcu_target() can't detect the ATtiny85; update the
Board declaration for DIGISPARK_TINY to include board_build_mcu="attiny85" as an
argument to the Board(...) call so target-based filtering and MCU identification
work correctly (see DIGISPARK_TINY and get_mcu_target()).

Comment on lines +48 to +87
#if defined(FL_IS_AVR_ATTINY)
if (outLen <= 0) {
return 0;
}
// TinyDebugSerial lacks readStringUntil(), so keep Stream's blocking
// line-read behavior without allocating Arduino String.
const unsigned long timeoutMs = 1000UL;
unsigned long start = millis();
int len = 0;
while (true) {
if (!Serial.available()) {
if (millis() - start >= timeoutMs) {
break;
}
yield();
continue;
}
const int value = Serial.read();
if (value < 0) {
break;
}
const char c = static_cast<char>(value);
if (c == delimiter) {
break;
}
if (len < outLen - 1) {
out[len++] = c;
}
start = millis();
}
out[len] = '\0';
return len;
#else
String line = Serial.readStringUntil(delimiter);
int len = line.length();
if (len > outLen - 1) len = outLen - 1;
memcpy(out, line.c_str(), len);
out[len] = '\0';
return len;
#endif

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 | 🟠 Major

Hoist the outLen guard so both branches are protected.

Line 49 only validates outLen for FL_IS_AVR_ATTINY. On non-ATtiny builds, outLen <= 0 can still make Line 83 set len negative, then Line 84 passes it to memcpy as a huge size_t and Line 85 writes out of bounds.

Proposed fix
 int readLineNative(char delimiter, char* out, int outLen) FL_NOEXCEPT {
-#if defined(FL_IS_AVR_ATTINY)
     if (outLen <= 0) {
         return 0;
     }
+#if defined(FL_IS_AVR_ATTINY)
     // TinyDebugSerial lacks readStringUntil(), so keep Stream's blocking
     // line-read behavior without allocating Arduino String.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/platforms/arduino/io_arduino.hpp` around lines 48 - 87, The guard that
checks outLen (outLen <= 0) must be hoisted so both conditional branches are
protected: move the outLen validation above the `#if` defined(FL_IS_AVR_ATTINY)
block (or add the same early-return check before using outLen in the non-ATtiny
branch) to immediately return 0 when outLen <= 0; this prevents computing a
negative len and passing it to memcpy in the non-ATtiny path where
Serial.readStringUntil(delimiter), line.length(), memcpy(out, line.c_str(), len)
and out[len] are used.

@zackees

zackees commented Apr 22, 2026

Copy link
Copy Markdown
Member Author

The failing job is hitting the zccache strict-path Meson normalizer, not the Digispark source patch:

zccache: -I flag `ci/meson/native/fastled.so.p` violates --strict-paths=absolute

Root cause: the #2385 normalizer handled quoted Meson private include flags but Linux emits this one unquoted. I opened the master CI fix here: #2389

Once #2389 lands on master, this PR's trusted-checkout unit workflow should pick it up on rerun.

@zackees
zackees force-pushed the digispark-tiny-build-fix branch from 3993896 to f4d0cd8 Compare April 22, 2026 22:10
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1178.51ms

Top 5 Slowest Headers

  1. FastLED.h - 899.44ms
  2. fl/fastled.h - 391.22ms
  3. fl/task/executor.h - 289.31ms
  4. crgb.h - 223.33ms
  5. fl/gfx/crgb.h - 222.01ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (899.4ms)
⚠️ Header fl/fastled.h exceeds 150ms (391.2ms)
⚠️ Header fl/task/executor.h exceeds 150ms (289.3ms)
⚠️ Header crgb.h exceeds 150ms (223.3ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (222.0ms)
⚠️ Header fl/math/ease.h exceeds 150ms (217.0ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (214.5ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (151.4ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (141.7ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (140.8ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (139.6ms)
⚠️ Header platforms/thread.h exceeds 50ms (139.5ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (139.5ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (139.4ms)
⚠️ Header fl/ui.h exceeds 50ms (124.5ms)
⚠️ Header fl/task/promise.h exceeds 50ms (124.0ms)
⚠️ Header fl/stl/json.h exceeds 50ms (77.8ms)
⚠️ Header fl/stl/function.h exceeds 50ms (74.1ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (64.6ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (60.3ms)
⚠️ Header platforms.h exceeds 50ms (55.7ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (55.6ms)
⚠️ Template instantiation time is high (52.0%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    3,558.45 ms
Frontend Time:             60.67 ms (1.7%)
Backend Time:              869.05 ms (24.4%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    14100.13 ms (396.2%)
Templates                   757.24 ms ( 21.3%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1963.9 ms - FastLED.h (SLOW)
  1045.3 ms - fl/task/executor.h (SLOW)
   695.4 ms - fl/task/promise.h (SLOW)
   630.4 ms - fl/stl/function.h (SLOW)
   465.6 ms - fl/fastled.h (SLOW)
   398.8 ms - fl/stl/shared_ptr.h (SLOW)
   336.0 ms - fl/stl/type_traits.h (SLOW)
   335.7 ms - fl/task/scheduler.h (SLOW)
   325.6 ms - fl/stl/singleton.h (SLOW)
   324.9 ms - fl/stl/thread_local.h (SLOW)
   323.7 ms - fl/stl/thread.h (SLOW)
   323.6 ms - platforms/thread.h (SLOW)
   323.6 ms - platforms/stub/thread_stub.h (SLOW)
   323.5 ms - platforms/stub/thread_stub_stl.h (SLOW)
   251.5 ms - crgb.h (SLOW)
   250.1 ms - fl/gfx/crgb.h (SLOW)
   245.0 ms - fl/math/ease.h (SLOW)
   242.5 ms - fl/math/fixed_point.h (SLOW)
   206.9 ms - fl/stl/stdint.h (SLOW)
   171.6 ms - fl/stl/move.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1963.9ms)
  ├─ 1045.3 ms - fl/task/executor.h
  │ ├─  695.4 ms - fl/task/promise.h
  │ │ ├─  630.4 ms - fl/stl/function.h
  │ │ │ ├─  398.8 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─  336.0 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─  171.6 ms - fl/stl/move.h
  │ │ │ │ ├─   29.0 ms - fl/stl/align.h
  │ │ │ │ ├─    5.7 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    4.8 ms - platforms/atomic.h
  │ │ │ │ │   └─    4.8 ms - platforms/shared/atomic.h
  │ │ │ │ └─    1.1 ms - fl/stl/bit_cast.h
  │ │ │ │   └─    0.6 ms - fl/stl/cstring.h
  │ │ │ ├─  135.2 ms - fl/stl/vector.h
  │ │ │ │ ├─   71.2 ms - fl/math/math.h
  │ │ │ │ │ └─   61.1 ms - fl/stl/undef.h
  │ │ │ │ │   └─   78.5 ms - stdlib.h
  │ │ │ │ │     ├─   42.2 ms - cstdlib
  │ │ │ │ │     │ ├─   78.5 ms - stdlib.h
  │ │ │ │ │     │ │ ├─   42.2 ms - cstdlib
  │ │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │ │     │ │ └─    0.5 ms - floatn.h
  │ │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │ │     ├─   10.3 ms - types.h
  │ │ │ │ │     │ ├─   10.3 ms - types.h
  │ │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │ │     │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    1.7 ms - select.h
  │ │ │ │ │     │ │ └─    1.7 ms - endian.h
  │ │ │ │ │     │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    1.7 ms - select.h
  │ │ │ │ │     │ └─    1.7 ms - endian.h
  │ │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ │ ├─   37.3 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   30.9 ms - fl/stl/bitset.h
  │ │ │ │ │   └─   26.0 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    7.7 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    7.0 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.9 ms - fl/stl/functional.h
  │ │ │ ├─   71.1 ms - fl/stl/variant.h
  │ │ │ │ └─   68.8 ms - fl/stl/new.h
  │ │ │ │   └─   68.8 ms - platforms/new.h
  │ │ │ │     └─   68.8 ms - platforms/shared/new.h
  │ │ │ │       └─   50.9 ms - new
  │ │ │ │         ├─   13.3 ms - c++config.h
  │ │ │ │         │ └─    5.0 ms - os_defines.h
  │ │ │ │         └─    0.7 ms - version.h
  │ │ │ ├─   10.6 ms - fl/stl/compiler_control.h
  │ │ │ └─    5.0 ms - fl/stl/pair.h
  │ │ └─   59.4 ms - fl/stl/string.h
  │ │   ├─   21.7 ms - fl/stl/span.h
  │ │   │ └─   12.6 ms - fl/math/geometry.h
  │ │   ├─   13.4 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.1 ms - fl/stl/not_null.h
  │ │   │ ├─    1.0 ms - fl/stl/iterator.h
  │ │   │ └─    0.6 ms - fl/stl/charconv.h
  │ │   ├─    5.9 ms - fl/stl/string_view.h
  │ │   └─    1.9 ms - fl/stl/optional.h
  │ ├─  335.7 ms - fl/task/scheduler.h
  │ │ ├─  325.6 ms - fl/stl/singleton.h
  │ │ │ └─  324.9 ms - fl/stl/thread_local.h
  │ │ │   └─  323.7 ms - fl/stl/thread.h
  │ │ │     └─  323.6 ms - platforms/thread.h
  │ │ │       └─  323.6 ms - platforms/stub/thread_stub.h
  │ │ │         └─  323.5 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  319.1 ms - thread
  │ │ │             ├─  180.1 ms - std_thread.h
  │ │ │             └─  119.6 ms - this_thread_sleep.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
  │ ├─   11.8 ms - platforms/await.h
  │ │ └─   11.4 ms - platforms/coroutine_runtime.h
  │ │   └─    9.8 ms - fl/system/engine_events.h
  │ │     ├─    5.1 ms - fl/math/screenmap.h
  │ │     │ └─    3.8 ms - fl/stl/flat_map.h
  │ │     └─    3.1 ms - fl/math/xymap.h
  │ │       └─    0.8 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  465.6 ms - fl/fastled.h
  │ ├─  251.5 ms - crgb.h
  │ │ ├─  250.1 ms - fl/gfx/crgb.h
  │ │ │ └─  245.0 ms - fl/math/ease.h
  │ │ │   └─  242.5 ms - fl/math/fixed_point.h
  │ │ │     ├─   88.9 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   67.5 ms - fl/math/sin32.h
  │ │ │     │ │ └─   64.1 ms - fl/math/simd.h
  │ │ │     │ │   └─   63.5 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   63.2 ms - platforms/simd.h
  │ │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.2 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   19.1 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │ │     └─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   85.3 ms - platforms.h
  │ │ └─   85.3 ms - platforms/stub/fastled_stub.h
  │ │   ├─   47.0 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   47.0 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   40.4 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   38.2 ms - fl/id_tracker.h
  │ │   │   │   └─   37.2 ms - fl/stl/mutex.h
  │ │   │   │     └─   37.1 ms - platforms/mutex.h
  │ │   │   │       └─   36.9 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    6.1 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   38.2 ms - platforms/stub/clockless_stub.h
  │ │     └─   38.1 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   13.6 ms - fl/channels/data.h
  │ │       │ └─   10.2 ms - fl/channels/config.h
  │ │       │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.8 ms - fl/chipsets/spi.h
  │ │       ├─   13.4 ms - fl/system/log.h
  │ │       │ └─   13.0 ms - fl/stl/strstream.h
  │ │       ├─    2.4 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.1 ms - fl/channels/driver.h
  │ ├─   45.8 ms - colorutils.h
  │ │ └─   45.4 ms - fl/gfx/colorutils.h
  │ │   ├─    9.2 ms - fl/gfx/blur.h
  │ │   │ └─    5.0 ms - fl/gfx/canvas.h
  │ │   │   └─    3.0 ms - fl/math/alpha.h
  │ │   ├─    4.7 ms - fl/gfx/fill.h
  │ │   └─    1.9 ms - fl/gfx/crgb16.h
  │ ├─   31.5 ms - pixeltypes.h
  │ │ ├─   27.8 ms - lib8tion.h
  │ │ │ ├─   18.1 ms - fl/math/math8.h
  │ │ │ │ ├─   10.2 ms - fl/math/scale8.h
  │ │ │ │ │ └─   10.2 ms - platforms/scale8.h
  │ │ │ │ │   └─    8.7 ms - platforms/shared/scale8.h
  │ │ │ │ ├─    5.6 ms - fl/math/intmap.h
  │ │ │ │ │ └─    4.3 ms - platforms/intmap.h
  │ │ │ │ └─    2.2 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.6 ms - fl/math/qfx.h
  │ │ │ └─    0.5 ms - fl/math/time_functions.h
  │ │ └─    3.4 ms - crgb.hpp
  │ └─   24.8 ms - pixel_controller.h
  │   ├─   17.8 ms - pixel_iterator.h
  │   │ └─   17.8 ms - fl/chipsets/encoders/pixel_iterator.h
  │   │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
  │   │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
  │   │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
  │   │   ├─    4.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
  │   │   └─    0.6 ms - fl/chipsets/encoders/ws2812.h
  │   └─    2.7 ms - rgbw.h
  │     └─    2.4 ms - fl/gfx/rgbw.h
  ├─  206.9 ms - fl/stl/stdint.h
  │ └─  159.9 ms - platforms/int.h
  │   ├─  159.3 ms - platforms/shared/int.h
  │   │ └─  159.2 ms - platforms/shared/int_linux.h
  │   └─    0.5 ms - platforms/arm/is_arm.h
  ├─  139.1 ms - fl/ui.h
  │ ├─   80.7 ms - fl/stl/json.h
  │ │ └─   62.6 ms - fl/stl/json/types.h
  │ │   └─    8.1 ms - fl/stl/limits.h
  │ ├─   12.6 ms - fl/asset.h
  │ │ └─   11.0 ms - fl/stl/url.h
  │ └─   11.0 ms - fl/ui_impl.h
  │   └─   10.4 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.7 ms - platforms/shared/ui/json/ui_internal.h
  │     ├─    1.0 ms - platforms/shared/ui/json/description.h
  │     ├─    1.0 ms - platforms/shared/ui/json/help.h
  │     └─    0.9 ms - platforms/shared/ui/json/number_field.h
  └─   29.9 ms - chipsets.h
    ├─   12.3 ms - fl/chipsets/ucs7604.h
    │ └─    9.3 ms - fl/chipsets/encoders/ucs7604.h
    ├─    7.1 ms - fl/chipsets/apa102.h
    ├─    1.8 ms - fl/chipsets/lpd880x.h
    ├─    0.9 ms - fl/chipsets/p9813.h
    └─    0.8 ms - fl/chipsets/encoders/ws2816.h
fl/task/executor.h (1045.3ms)
  ├─  695.4 ms - fl/task/promise.h
  │ ├─  630.4 ms - fl/stl/function.h
  │ │ ├─  398.8 ms - fl/stl/shared_ptr.h
  │ │ │ ├─  336.0 ms - fl/stl/type_traits.h
  │ │ │ │ └─  171.6 ms - fl/stl/move.h
  │ │ │ ├─   29.0 ms - fl/stl/align.h
  │ │ │ ├─    5.7 ms - fl/stl/atomic.h
  │ │ │ │ └─    4.8 ms - platforms/atomic.h
  │ │ │ │   └─    4.8 ms - platforms/shared/atomic.h
  │ │ │ └─    1.1 ms - fl/stl/bit_cast.h
  │ │ │   └─    0.6 ms - fl/stl/cstring.h
  │ │ ├─  135.2 ms - fl/stl/vector.h
  │ │ │ ├─   71.2 ms - fl/math/math.h
  │ │ │ │ └─   61.1 ms - fl/stl/undef.h
  │ │ │ │   └─   78.5 ms - stdlib.h
  │ │ │ │     ├─   42.2 ms - cstdlib
  │ │ │ │     │ ├─   78.5 ms - stdlib.h
  │ │ │ │     │ │ ├─   42.2 ms - cstdlib
  │ │ │ │     │ │ │ ├─   78.5 ms - stdlib.h
  │ │ │ │     │ │ │ └─    0.6 ms - std_abs.h
  │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.7 ms - select.h
  │ │ │ │     │ │ │ └─    1.7 ms - endian.h
  │ │ │ │     │ │ └─    0.5 ms - floatn.h
  │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │     ├─   10.3 ms - types.h
  │ │ │ │     │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─   10.3 ms - types.h
  │ │ │ │     │ │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.7 ms - select.h
  │ │ │ │     │ │ │ └─    1.7 ms - endian.h
  │ │ │ │     │ │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    1.7 ms - select.h
  │ │ │ │     │ │ └─    1.7 ms - endian.h
  │ │ │ │     │ ├─    2.1 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │     │ ├─    1.7 ms - select.h
  │ │ │ │     │ └─    1.7 ms - endian.h
  │ │ │ │     └─    0.5 ms - floatn.h
  │ │ │ ├─   37.3 ms - fl/stl/allocator.h
  │ │ │ │ └─   30.9 ms - fl/stl/bitset.h
  │ │ │ │   └─   26.0 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.3 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    7.7 ms - fl/stl/initializer_list.h
  │ │ │ ├─    7.0 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.9 ms - fl/stl/functional.h
  │ │ ├─   71.1 ms - fl/stl/variant.h
  │ │ │ └─   68.8 ms - fl/stl/new.h
  │ │ │   └─   68.8 ms - platforms/new.h
  │ │ │     └─   68.8 ms - platforms/shared/new.h
  │ │ │       └─   50.9 ms - new
  │ │ │         ├─   13.3 ms - c++config.h
  │ │ │         │ └─    5.0 ms - os_defines.h
  │ │ │         │   └─    4.6 ms - features.h
  │ │ │         └─    0.7 ms - version.h
  │ │ ├─   10.6 ms - fl/stl/compiler_control.h
  │ │ └─    5.0 ms - fl/stl/pair.h
  │ └─   59.4 ms - fl/stl/string.h
  │   ├─   21.7 ms - fl/stl/span.h
  │   │ └─   12.6 ms - fl/math/geometry.h
  │   ├─   13.4 ms - fl/stl/basic_string.h
  │   │ ├─    1.1 ms - fl/stl/not_null.h
  │   │ ├─    1.0 ms - fl/stl/iterator.h
  │   │ └─    0.6 ms - fl/stl/charconv.h
  │   ├─    5.9 ms - fl/stl/string_view.h
  │   └─    1.9 ms - fl/stl/optional.h
  ├─  335.7 ms - fl/task/scheduler.h
  │ ├─  325.6 ms - fl/stl/singleton.h
  │ │ └─  324.9 ms - fl/stl/thread_local.h
  │ │   └─  323.7 ms - fl/stl/thread.h
  │ │     └─  323.6 ms - platforms/thread.h
  │ │       └─  323.6 ms - platforms/stub/thread_stub.h
  │ │         └─  323.5 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  319.1 ms - thread
  │ │             ├─  180.1 ms - std_thread.h
  │ │             │ ├─   58.3 ms - tuple
  │ │             │ ├─   25.6 ms - refwrap.h
  │ │             │ ├─   24.8 ms - iosfwd
  │ │             │ ├─   14.3 ms - gthr.h
  │ │             │ └─   12.2 ms - unique_ptr.h
  │ │             └─  119.6 ms - this_thread_sleep.h
  │ │               ├─   99.3 ms - chrono.h
  │ │               └─    3.8 ms - cerrno
  │ └─    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
  ├─   11.8 ms - platforms/await.h
  │ └─   11.4 ms - platforms/coroutine_runtime.h
  │   └─    9.8 ms - fl/system/engine_events.h
  │     ├─    5.1 ms - fl/math/screenmap.h
  │     │ └─    3.8 ms - fl/stl/flat_map.h
  │     └─    3.1 ms - fl/math/xymap.h
  │       └─    0.8 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/fastled.h (465.6ms)
  ├─  251.5 ms - crgb.h
  │ ├─  250.1 ms - fl/gfx/crgb.h
  │ │ └─  245.0 ms - fl/math/ease.h
  │ │   └─  242.5 ms - fl/math/fixed_point.h
  │ │     ├─   88.9 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   67.5 ms - fl/math/sin32.h
  │ │     │ │ └─   64.1 ms - fl/math/simd.h
  │ │     │ │   └─   63.5 ms - fl/math/simd/types.h
  │ │     │ │     └─   63.2 ms - platforms/simd.h
  │ │     │ │       └─   63.1 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   19.2 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   19.1 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │     └─   19.0 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   85.3 ms - platforms.h
  │ └─   85.3 ms - platforms/stub/fastled_stub.h
  │   ├─   47.0 ms - platforms/stub/fastspi_stub.h
  │   │ └─   47.0 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   40.4 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   38.2 ms - fl/id_tracker.h
  │   │   │   └─   37.2 ms - fl/stl/mutex.h
  │   │   │     └─   37.1 ms - platforms/mutex.h
  │   │   │       └─   36.9 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   36.9 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    6.1 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   38.2 ms - platforms/stub/clockless_stub.h
  │     └─   38.1 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   13.6 ms - fl/channels/data.h
  │       │ └─   10.2 ms - fl/channels/config.h
  │       │   ├─    2.3 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.5 ms - fl/chipsets/led_timing.h
  │       │   └─    1.8 ms - fl/chipsets/spi.h
  │       ├─   13.4 ms - fl/system/log.h
  │       │ └─   13.0 ms - fl/stl/strstream.h
  │       ├─    2.4 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.1 ms - fl/channels/driver.h
  ├─   45.8 ms - colorutils.h
  │ └─   45.4 ms - fl/gfx/colorutils.h
  │   ├─    9.2 ms - fl/gfx/blur.h
  │   │ └─    5.0 ms - fl/gfx/canvas.h
  │   │   └─    3.0 ms - fl/math/alpha.h
  │   ├─    4.7 ms - fl/gfx/fill.h
  │   └─    1.9 ms - fl/gfx/crgb16.h
  ├─   31.5 ms - pixeltypes.h
  │ ├─   27.8 ms - lib8tion.h
  │ │ ├─   18.1 ms - fl/math/math8.h
  │ │ │ ├─   10.2 ms - fl/math/scale8.h
  │ │ │ │ └─   10.2 ms - platforms/scale8.h
  │ │ │ │   └─    8.7 ms - platforms/shared/scale8.h
  │ │ │ ├─    5.6 ms - fl/math/intmap.h
  │ │ │ │ └─    4.3 ms - platforms/intmap.h
  │ │ │ └─    2.2 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.6 ms - fl/math/qfx.h
  │ │ └─    0.5 ms - fl/math/time_functions.h
  │ └─    3.4 ms - crgb.hpp
  └─   24.8 ms - pixel_controller.h
    ├─   17.8 ms - pixel_iterator.h
    │ └─   17.8 ms - fl/chipsets/encoders/pixel_iterator.h
    │   ├─    5.3 ms - fl/chipsets/encoders/apa102.h
    │   │ └─    4.1 ms - fl/chipsets/encoders/encoder_utils.h
    │   │   └─    3.4 ms - fl/gfx/gamma_lut.h
    │   ├─    4.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
    │   └─    0.6 ms - fl/chipsets/encoders/ws2812.h
    └─    2.7 ms - rgbw.h
      └─    2.4 ms - fl/gfx/rgbw.h
fl/stl/stdint.h (206.9ms)
  └─  159.9 ms - platforms/int.h
    ├─  159.3 ms - platforms/shared/int.h
    │ └─  159.2 ms - platforms/shared/int_linux.h
    └─    0.5 ms - platforms/arm/is_arm.h
fl/ui.h (139.1ms)
  ├─   80.7 ms - fl/stl/json.h
  │ └─   62.6 ms - fl/stl/json/types.h
  │   └─    8.1 ms - fl/stl/limits.h
  ├─   12.6 ms - fl/asset.h
  │ └─   11.0 ms - fl/stl/url.h
  └─   11.0 ms - fl/ui_impl.h
    └─   10.4 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.7 ms - platforms/shared/ui/json/ui_internal.h
      ├─    1.0 ms - platforms/shared/ui/json/description.h
      ├─    1.0 ms - platforms/shared/ui/json/help.h
      └─    0.9 ms - platforms/shared/ui/json/number_field.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1963.9 ms - Source: FastLED.h
  2.  1963.9 ms - Total Source: 
  3.  1045.3 ms - Source: fl/task/executor.h
  4.   829.5 ms - Total ParseClass: 
  5.   695.4 ms - Source: fl/task/promise.h
  6.   630.4 ms - Source: fl/stl/function.h
  7.   465.6 ms - Source: fl/fastled.h
  8.   398.8 ms - Source: fl/stl/shared_ptr.h
  9.   336.0 ms - Source: fl/stl/type_traits.h
 10.   335.7 ms - Source: fl/task/scheduler.h
 11.   325.6 ms - Source: fl/stl/singleton.h
 12.   324.9 ms - Source: fl/stl/thread_local.h
 13.   323.7 ms - Source: fl/stl/thread.h
 14.   323.6 ms - Source: platforms/thread.h
 15.   323.6 ms - Source: platforms/stub/thread_stub.h
 16.   323.5 ms - Source: platforms/stub/thread_stub_stl.h
 17.   319.1 ms - Source: thread
 18.   251.5 ms - Source: crgb.h
 19.   251.1 ms - Total InstantiateFunction: 
 20.   250.1 ms - Source: fl/gfx/crgb.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1963.9ms)
    - fl/task/executor.h (1045.3ms)
    - fl/task/promise.h (695.4ms)
    - fl/stl/function.h (630.4ms)
    - fl/fastled.h (465.6ms)
    - fl/stl/shared_ptr.h (398.8ms)
    - fl/stl/type_traits.h (336.0ms)
    - fl/task/scheduler.h (335.7ms)
    - fl/stl/singleton.h (325.6ms)
    - fl/stl/thread_local.h (324.9ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1963.9ms)
2. Consider optimizing fl/task/executor.h (1045.3ms)
3. Consider optimizing fl/task/promise.h (695.4ms)

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

@zackees
zackees merged commit 3939abc into master Apr 22, 2026
1 of 84 checks passed
@zackees
zackees deleted the digispark-tiny-build-fix 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.

Not compile blink for digispark attiny85 board

1 participant