Skip to content

Fix static span subview construction - #2381

Merged
zackees merged 1 commit into
masterfrom
fix-span-static-subviews
Apr 22, 2026
Merged

zackees merged 1 commit into
masterfrom
fix-span-static-subviews

Conversation

@zackees

@zackees zackees commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • fix static-extent fl::span compile-time subviews to construct returned spans with both pointer and extent
  • addresses the tests/fl/slice.cpp compile failure seen in the PR Require zccache strict path flag support #2380 Linux unit-test job after zccache 1.3.7 was merged

Testing

  • uv run python test.py --unit fl/slice --quick --no-interactive --no-parallel --force
  • git diff --check

Summary by CodeRabbit

  • Refactor
    • Improved internal span template implementation for static-extent specializations to enhance compile-time subview construction consistency.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 94935e1e-2c80-45ce-b42b-5b0f91518822

📥 Commits

Reviewing files that changed from the base of the PR and between 2b1df70 and cce99e7.

📒 Files selected for processing (1)
  • src/fl/stl/span.h

📝 Walkthrough

Walkthrough

The span<T, Extent> static-extent specialization was updated to pass compile-time extent values when constructing subviews. Methods first<N>(), last<N>(), and subspan<Offset, Count>() now include extent information in their return value construction, including handling for dynamic extent cases.

Changes

Cohort / File(s) Summary
Compile-time subview construction
src/fl/stl/span.h
Updated first<N>(), last<N>(), and subspan<Offset, Count>() member functions to construct returned span objects with both pointer and compile-time extent values; handles static and dynamic extent branches.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A span that knew its bounds so well,
Now whispers extent tales to tell,
With pointers paired to sizes true,
Compile-time magic old and new,
Subviews dance with perfect grace! ✨

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 934.14ms

Top 5 Slowest Headers

  1. FastLED.h - 713.79ms
  2. fl/fastled.h - 302.08ms
  3. fl/task/executor.h - 232.06ms
  4. crgb.h - 168.72ms
  5. fl/gfx/crgb.h - 167.58ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (713.8ms)
⚠️ Header fl/fastled.h exceeds 150ms (302.1ms)
⚠️ Header fl/task/executor.h exceeds 150ms (232.1ms)
⚠️ Header crgb.h exceeds 150ms (168.7ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (167.6ms)
⚠️ Header fl/math/ease.h exceeds 150ms (163.4ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (161.5ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (123.5ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (115.3ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (114.7ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (113.7ms)
⚠️ Header platforms/thread.h exceeds 50ms (113.7ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (113.6ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (113.6ms)
⚠️ Header fl/ui.h exceeds 50ms (101.9ms)
⚠️ Header fl/task/promise.h exceeds 50ms (97.1ms)
⚠️ Header fl/stl/json.h exceeds 50ms (62.9ms)
⚠️ Header fl/stl/function.h exceeds 50ms (57.2ms)
⚠️ Template instantiation time is high (48.9%)

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

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,933.17 ms
Frontend Time:             14.24 ms (0.7%)
Backend Time:              129.27 ms (6.7%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    13775.33 ms (712.6%)
Templates                   455.65 ms ( 23.6%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1539.3 ms - FastLED.h (SLOW)
   901.6 ms - fl/task/executor.h (SLOW)
   463.5 ms - fl/task/scheduler.h (SLOW)
   455.4 ms - fl/stl/singleton.h (SLOW)
   454.8 ms - fl/stl/thread_local.h (SLOW)
   453.8 ms - fl/stl/thread.h (SLOW)
   453.7 ms - platforms/thread.h (SLOW)
   453.7 ms - platforms/stub/thread_stub.h (SLOW)
   453.6 ms - platforms/stub/thread_stub_stl.h (SLOW)
   428.3 ms - fl/fastled.h (SLOW)
   426.4 ms - fl/task/promise.h (SLOW)
   386.7 ms - fl/stl/function.h (SLOW)
   246.0 ms - crgb.h (SLOW)
   244.9 ms - fl/gfx/crgb.h (SLOW)
   240.6 ms - fl/math/ease.h (SLOW)
   238.8 ms - fl/math/fixed_point.h (SLOW)
   175.3 ms - fl/stl/vector.h (SLOW)
   154.2 ms - fl/stl/variant.h (SLOW)
   152.4 ms - fl/stl/new.h (SLOW)
   152.3 ms - platforms/new.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1539.3ms)
  ├─  901.6 ms - fl/task/executor.h
  │ ├─  463.5 ms - fl/task/scheduler.h
  │ │ ├─  455.4 ms - fl/stl/singleton.h
  │ │ │ └─  454.8 ms - fl/stl/thread_local.h
  │ │ │   └─  453.8 ms - fl/stl/thread.h
  │ │ │     └─  453.7 ms - platforms/thread.h
  │ │ │       └─  453.7 ms - platforms/stub/thread_stub.h
  │ │ │         └─  453.6 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  444.4 ms - thread
  │ │ │             ├─  238.7 ms - std_thread.h
  │ │ │             └─  168.3 ms - this_thread_sleep.h
  │ │ └─    7.3 ms - fl/task/task.h
  │ │   └─    2.9 ms - fl/trace.h
  │ │     ├─    1.8 ms - fl/stl/chrono.h
  │ │     └─    0.8 ms - fl/stl/tuple.h
  │ ├─  426.4 ms - fl/task/promise.h
  │ │ ├─  386.7 ms - fl/stl/function.h
  │ │ │ ├─  175.3 ms - fl/stl/vector.h
  │ │ │ │ ├─  136.2 ms - fl/math/math.h
  │ │ │ │ │ └─  131.2 ms - fl/stl/undef.h
  │ │ │ │ │   └─  198.4 ms - stdlib.h
  │ │ │ │ │     ├─  108.4 ms - cstdlib
  │ │ │ │ │     │ ├─  198.4 ms - stdlib.h
  │ │ │ │ │     │ │ ├─  108.4 ms - cstdlib
  │ │ │ │ │     │ │ ├─   30.8 ms - types.h
  │ │ │ │ │     │ │ └─    0.6 ms - floatn.h
  │ │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │ │     ├─   30.8 ms - types.h
  │ │ │ │ │     │ ├─   30.8 ms - types.h
  │ │ │ │ │     │ │ ├─   30.8 ms - types.h
  │ │ │ │ │     │ │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    1.6 ms - endian.h
  │ │ │ │ │     │ │ └─    1.6 ms - select.h
  │ │ │ │ │     │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    1.6 ms - endian.h
  │ │ │ │ │     │ └─    1.6 ms - select.h
  │ │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ │ ├─   15.7 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─   14.6 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   10.0 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    6.4 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ │ ├─    2.2 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    0.5 ms - fl/stl/functional.h
  │ │ │ ├─  154.2 ms - fl/stl/variant.h
  │ │ │ │ └─  152.4 ms - fl/stl/new.h
  │ │ │ │   └─  152.3 ms - platforms/new.h
  │ │ │ │     └─  152.3 ms - platforms/shared/new.h
  │ │ │ │       └─  110.8 ms - new
  │ │ │ │         ├─   55.2 ms - c++config.h
  │ │ │ │         │ └─   42.3 ms - os_defines.h
  │ │ │ │         └─    1.2 ms - version.h
  │ │ │ ├─   42.3 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   29.0 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   23.4 ms - fl/stl/move.h
  │ │ │ │ ├─    9.1 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    8.2 ms - platforms/atomic.h
  │ │ │ │ │   └─    8.1 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ │ ├─    6.5 ms - fl/stl/compiler_control.h
  │ │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │ │   └─    1.5 ms - fl/math/random.h
  │ │ │     └─    0.7 ms - fl/math/random8.h
  │ │ └─   35.3 ms - fl/stl/string.h
  │ │   ├─   10.5 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.9 ms - fl/stl/not_null.h
  │ │   │ └─    0.8 ms - fl/stl/iterator.h
  │ │   ├─    7.0 ms - fl/stl/span.h
  │ │   │ └─    2.9 ms - fl/math/geometry.h
  │ │   ├─    4.2 ms - fl/stl/string_view.h
  │ │   └─    1.2 ms - fl/stl/optional.h
  │ ├─    9.8 ms - platforms/await.h
  │ │ └─    9.4 ms - platforms/coroutine_runtime.h
  │ │   └─    8.1 ms - fl/system/engine_events.h
  │ │     ├─    4.1 ms - fl/math/screenmap.h
  │ │     │ └─    3.0 ms - fl/stl/flat_map.h
  │ │     └─    2.6 ms - fl/math/xymap.h
  │ │       └─    0.7 ms - fl/math/lut.h
  │ └─    0.6 ms - fl/task/promise_result.h
  ├─  428.3 ms - fl/fastled.h
  │ ├─  246.0 ms - crgb.h
  │ │ ├─  244.9 ms - fl/gfx/crgb.h
  │ │ │ └─  240.6 ms - fl/math/ease.h
  │ │ │   └─  238.8 ms - fl/math/fixed_point.h
  │ │ │     ├─  123.5 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─  106.5 ms - fl/math/sin32.h
  │ │ │     │ │ └─  103.6 ms - fl/math/simd.h
  │ │ │     │ │   └─  103.2 ms - fl/math/simd/types.h
  │ │ │     │ │     └─  102.9 ms - platforms/simd.h
  │ │ │     │ ├─    0.8 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   14.6 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   14.4 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   14.2 ms - fl/math/fixed_point/s16x16.h
  │ │ │     └─   14.0 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.7 ms - chsv.h
  │ │   └─    0.7 ms - fl/gfx/hsv.h
  │ ├─   94.8 ms - platforms.h
  │ │ └─   94.8 ms - platforms/stub/fastled_stub.h
  │ │   ├─   64.4 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   64.4 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   59.0 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   57.1 ms - fl/id_tracker.h
  │ │   │   │   └─   56.3 ms - fl/stl/mutex.h
  │ │   │   │     └─   56.2 ms - platforms/mutex.h
  │ │   │   │       └─   56.1 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    5.0 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   30.3 ms - platforms/stub/clockless_stub.h
  │ │     └─   30.3 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   11.0 ms - fl/channels/data.h
  │ │       │ └─    8.2 ms - fl/channels/config.h
  │ │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.4 ms - fl/chipsets/spi.h
  │ │       ├─   10.4 ms - fl/system/log.h
  │ │       │ └─   10.0 ms - fl/stl/strstream.h
  │ │       ├─    2.0 ms - fl/channels/manager.h
  │ │       ├─    1.3 ms - fl/stl/weak_ptr.h
  │ │       └─    0.9 ms - fl/channels/driver.h
  │ ├─   34.0 ms - colorutils.h
  │ │ └─   33.6 ms - fl/gfx/colorutils.h
  │ │   ├─    6.9 ms - fl/gfx/blur.h
  │ │   │ └─    3.7 ms - fl/gfx/canvas.h
  │ │   │   └─    2.3 ms - fl/math/alpha.h
  │ │   ├─    2.6 ms - fl/gfx/fill.h
  │ │   └─    1.5 ms - fl/gfx/crgb16.h
  │ ├─   18.4 ms - pixel_controller.h
  │ │ ├─   13.1 ms - pixel_iterator.h
  │ │ │ └─   13.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    3.7 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    2.9 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    2.4 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    3.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.6 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.1 ms - rgbw.h
  │ │   └─    1.9 ms - fl/gfx/rgbw.h
  │ └─   17.1 ms - pixeltypes.h
  │   ├─   14.4 ms - lib8tion.h
  │   │ ├─    7.2 ms - fl/math/math8.h
  │   │ │ ├─    3.7 ms - fl/math/intmap.h
  │   │ │ │ └─    2.9 ms - platforms/intmap.h
  │   │ │ ├─    1.9 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.5 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.5 ms - crgb.hpp
  ├─  102.0 ms - fl/ui.h
  │ ├─   62.8 ms - fl/stl/json.h
  │ │ └─   49.4 ms - fl/stl/json/types.h
  │ │   └─    5.7 ms - fl/stl/limits.h
  │ ├─    9.0 ms - fl/ui_impl.h
  │ │ └─    8.5 ms - platforms/ui_defs.h
  │ │   ├─    1.8 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    0.9 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.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.7 ms - platforms/shared/ui/json/description.h
  │ │   └─    0.7 ms - platforms/shared/ui/json/number_field.h
  │ └─    7.9 ms - fl/asset.h
  │   └─    6.7 ms - fl/stl/url.h
  ├─   23.6 ms - chipsets.h
  │ ├─    9.8 ms - fl/chipsets/ucs7604.h
  │ │ └─    7.5 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    5.6 ms - fl/chipsets/apa102.h
  │ ├─    1.4 ms - fl/chipsets/lpd880x.h
  │ ├─    0.7 ms - fl/chipsets/p9813.h
  │ └─    0.7 ms - fl/chipsets/encoders/ws2816.h
  └─   21.7 ms - platforms/is_platform.h
    └─   21.3 ms - platforms/esp/is_esp.h
      └─   21.3 ms - platforms/esp/esp_version.h
fl/task/executor.h (901.6ms)
  ├─  463.5 ms - fl/task/scheduler.h
  │ ├─  455.4 ms - fl/stl/singleton.h
  │ │ └─  454.8 ms - fl/stl/thread_local.h
  │ │   └─  453.8 ms - fl/stl/thread.h
  │ │     └─  453.7 ms - platforms/thread.h
  │ │       └─  453.7 ms - platforms/stub/thread_stub.h
  │ │         └─  453.6 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  444.4 ms - thread
  │ │             ├─  238.7 ms - std_thread.h
  │ │             │ ├─   61.4 ms - tuple
  │ │             │ ├─   52.9 ms - refwrap.h
  │ │             │ ├─   38.9 ms - iosfwd
  │ │             │ ├─   16.7 ms - gthr.h
  │ │             │ └─    5.8 ms - unique_ptr.h
  │ │             └─  168.3 ms - this_thread_sleep.h
  │ │               ├─  122.4 ms - chrono.h
  │ │               └─   33.0 ms - cerrno
  │ └─    7.3 ms - fl/task/task.h
  │   └─    2.9 ms - fl/trace.h
  │     ├─    1.8 ms - fl/stl/chrono.h
  │     └─    0.8 ms - fl/stl/tuple.h
  ├─  426.4 ms - fl/task/promise.h
  │ ├─  386.7 ms - fl/stl/function.h
  │ │ ├─  175.3 ms - fl/stl/vector.h
  │ │ │ ├─  136.2 ms - fl/math/math.h
  │ │ │ │ └─  131.2 ms - fl/stl/undef.h
  │ │ │ │   └─  198.4 ms - stdlib.h
  │ │ │ │     ├─  108.4 ms - cstdlib
  │ │ │ │     │ ├─  198.4 ms - stdlib.h
  │ │ │ │     │ │ ├─  108.4 ms - cstdlib
  │ │ │ │     │ │ │ ├─  198.4 ms - stdlib.h
  │ │ │ │     │ │ │ └─    0.6 ms - std_abs.h
  │ │ │ │     │ │ ├─   30.8 ms - types.h
  │ │ │ │     │ │ │ ├─   30.8 ms - types.h
  │ │ │ │     │ │ │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.6 ms - endian.h
  │ │ │ │     │ │ │ └─    1.6 ms - select.h
  │ │ │ │     │ │ └─    0.6 ms - floatn.h
  │ │ │ │     │ └─    0.6 ms - std_abs.h
  │ │ │ │     ├─   30.8 ms - types.h
  │ │ │ │     │ ├─   30.8 ms - types.h
  │ │ │ │     │ │ ├─   30.8 ms - types.h
  │ │ │ │     │ │ │ ├─   30.8 ms - types.h
  │ │ │ │     │ │ │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    1.6 ms - endian.h
  │ │ │ │     │ │ │ └─    1.6 ms - select.h
  │ │ │ │     │ │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    1.6 ms - endian.h
  │ │ │ │     │ │ └─    1.6 ms - select.h
  │ │ │ │     │ ├─    1.7 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.2 ms - thread-shared-types.h
  │ │ │ │     │ ├─    1.6 ms - endian.h
  │ │ │ │     │ └─    1.6 ms - select.h
  │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ ├─   15.7 ms - fl/stl/initializer_list.h
  │ │ │ ├─   14.6 ms - fl/stl/allocator.h
  │ │ │ │ └─   10.0 ms - fl/stl/bitset.h
  │ │ │ │   └─    6.4 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.8 ms - fl/stl/unique_ptr.h
  │ │ │ ├─    2.2 ms - fl/stl/basic_vector.h
  │ │ │ └─    0.5 ms - fl/stl/functional.h
  │ │ ├─  154.2 ms - fl/stl/variant.h
  │ │ │ └─  152.4 ms - fl/stl/new.h
  │ │ │   └─  152.3 ms - platforms/new.h
  │ │ │     └─  152.3 ms - platforms/shared/new.h
  │ │ │       └─  110.8 ms - new
  │ │ │         ├─   55.2 ms - c++config.h
  │ │ │         │ └─   42.3 ms - os_defines.h
  │ │ │         │   └─   37.1 ms - features.h
  │ │ │         └─    1.2 ms - version.h
  │ │ ├─   42.3 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   29.0 ms - fl/stl/type_traits.h
  │ │ │ │ └─   23.4 ms - fl/stl/move.h
  │ │ │ ├─    9.1 ms - fl/stl/atomic.h
  │ │ │ │ └─    8.2 ms - platforms/atomic.h
  │ │ │ │   └─    8.1 ms - platforms/shared/atomic.h
  │ │ │ └─    0.6 ms - fl/stl/bit_cast.h
  │ │ ├─    6.5 ms - fl/stl/compiler_control.h
  │ │ └─    3.7 ms - fl/stl/algorithm.h
  │ │   └─    1.5 ms - fl/math/random.h
  │ │     └─    0.7 ms - fl/math/random8.h
  │ └─   35.3 ms - fl/stl/string.h
  │   ├─   10.5 ms - fl/stl/basic_string.h
  │   │ ├─    0.9 ms - fl/stl/not_null.h
  │   │ └─    0.8 ms - fl/stl/iterator.h
  │   ├─    7.0 ms - fl/stl/span.h
  │   │ └─    2.9 ms - fl/math/geometry.h
  │   ├─    4.2 ms - fl/stl/string_view.h
  │   └─    1.2 ms - fl/stl/optional.h
  ├─    9.8 ms - platforms/await.h
  │ └─    9.4 ms - platforms/coroutine_runtime.h
  │   └─    8.1 ms - fl/system/engine_events.h
  │     ├─    4.1 ms - fl/math/screenmap.h
  │     │ └─    3.0 ms - fl/stl/flat_map.h
  │     └─    2.6 ms - fl/math/xymap.h
  │       └─    0.7 ms - fl/math/lut.h
  └─    0.6 ms - fl/task/promise_result.h
fl/fastled.h (428.3ms)
  ├─  246.0 ms - crgb.h
  │ ├─  244.9 ms - fl/gfx/crgb.h
  │ │ └─  240.6 ms - fl/math/ease.h
  │ │   └─  238.8 ms - fl/math/fixed_point.h
  │ │     ├─  123.5 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─  106.5 ms - fl/math/sin32.h
  │ │     │ │ └─  103.6 ms - fl/math/simd.h
  │ │     │ │   └─  103.2 ms - fl/math/simd/types.h
  │ │     │ │     └─  102.9 ms - platforms/simd.h
  │ │     │ │       └─  102.8 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.8 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.6 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   14.6 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   14.4 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   14.2 ms - fl/math/fixed_point/s16x16.h
  │ │     └─   14.0 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.7 ms - chsv.h
  │   └─    0.7 ms - fl/gfx/hsv.h
  ├─   94.8 ms - platforms.h
  │ └─   94.8 ms - platforms/stub/fastled_stub.h
  │   ├─   64.4 ms - platforms/stub/fastspi_stub.h
  │   │ └─   64.4 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   59.0 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   57.1 ms - fl/id_tracker.h
  │   │   │   └─   56.3 ms - fl/stl/mutex.h
  │   │   │     └─   56.2 ms - platforms/mutex.h
  │   │   │       └─   56.1 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   56.1 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    5.0 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   30.3 ms - platforms/stub/clockless_stub.h
  │     └─   30.3 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   11.0 ms - fl/channels/data.h
  │       │ └─    8.2 ms - fl/channels/config.h
  │       │   ├─    1.8 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.2 ms - fl/chipsets/led_timing.h
  │       │   └─    1.4 ms - fl/chipsets/spi.h
  │       ├─   10.4 ms - fl/system/log.h
  │       │ └─   10.0 ms - fl/stl/strstream.h
  │       ├─    2.0 ms - fl/channels/manager.h
  │       ├─    1.3 ms - fl/stl/weak_ptr.h
  │       └─    0.9 ms - fl/channels/driver.h
  ├─   34.0 ms - colorutils.h
  │ └─   33.6 ms - fl/gfx/colorutils.h
  │   ├─    6.9 ms - fl/gfx/blur.h
  │   │ └─    3.7 ms - fl/gfx/canvas.h
  │   │   └─    2.3 ms - fl/math/alpha.h
  │   ├─    2.6 ms - fl/gfx/fill.h
  │   └─    1.5 ms - fl/gfx/crgb16.h
  ├─   18.4 ms - pixel_controller.h
  │ ├─   13.1 ms - pixel_iterator.h
  │ │ └─   13.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    3.7 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    2.9 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    2.4 ms - fl/gfx/gamma_lut.h
  │ │   ├─    3.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    0.8 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.6 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.1 ms - rgbw.h
  │   └─    1.9 ms - fl/gfx/rgbw.h
  └─   17.1 ms - pixeltypes.h
    ├─   14.4 ms - lib8tion.h
    │ ├─    7.2 ms - fl/math/math8.h
    │ │ ├─    3.7 ms - fl/math/intmap.h
    │ │ │ └─    2.9 ms - platforms/intmap.h
    │ │ ├─    1.9 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.5 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.5 ms - crgb.hpp
fl/ui.h (102.0ms)
  ├─   62.8 ms - fl/stl/json.h
  │ └─   49.4 ms - fl/stl/json/types.h
  │   └─    5.7 ms - fl/stl/limits.h
  ├─    9.0 ms - fl/ui_impl.h
  │ └─    8.5 ms - platforms/ui_defs.h
  │   ├─    1.8 ms - platforms/shared/ui/json/audio.h
  │   │ └─    0.9 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.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.7 ms - platforms/shared/ui/json/description.h
  │   └─    0.7 ms - platforms/shared/ui/json/number_field.h
  └─    7.9 ms - fl/asset.h
    └─    6.7 ms - fl/stl/url.h
chipsets.h (23.6ms)
  ├─    9.8 ms - fl/chipsets/ucs7604.h
  │ └─    7.5 ms - fl/chipsets/encoders/ucs7604.h
  ├─    5.6 ms - fl/chipsets/apa102.h
  ├─    1.4 ms - fl/chipsets/lpd880x.h
  ├─    0.7 ms - fl/chipsets/p9813.h
  └─    0.7 ms - fl/chipsets/encoders/ws2816.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1539.3 ms - Source: FastLED.h
  2.  1539.3 ms - Total Source: 
  3.   901.6 ms - Source: fl/task/executor.h
  4.   527.1 ms - Total ParseClass: 
  5.   463.5 ms - Source: fl/task/scheduler.h
  6.   455.4 ms - Source: fl/stl/singleton.h
  7.   454.8 ms - Source: fl/stl/thread_local.h
  8.   453.8 ms - Source: fl/stl/thread.h
  9.   453.7 ms - Source: platforms/thread.h
 10.   453.7 ms - Source: platforms/stub/thread_stub.h
 11.   453.6 ms - Source: platforms/stub/thread_stub_stl.h
 12.   444.4 ms - Source: thread
 13.   428.3 ms - Source: fl/fastled.h
 14.   426.4 ms - Source: fl/task/promise.h
 15.   386.7 ms - Source: fl/stl/function.h
 16.   246.0 ms - Source: crgb.h
 17.   244.9 ms - Source: fl/gfx/crgb.h
 18.   240.6 ms - Source: fl/math/ease.h
 19.   238.8 ms - Source: fl/math/fixed_point.h
 20.   238.7 ms - Source: std_thread.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1539.3ms)
    - fl/task/executor.h (901.6ms)
    - fl/task/scheduler.h (463.5ms)
    - fl/stl/singleton.h (455.4ms)
    - fl/stl/thread_local.h (454.8ms)
    - fl/stl/thread.h (453.8ms)
    - platforms/thread.h (453.7ms)
    - platforms/stub/thread_stub.h (453.7ms)
    - platforms/stub/thread_stub_stl.h (453.6ms)
    - fl/fastled.h (428.3ms)

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

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1539.3ms)
2. Consider optimizing fl/task/executor.h (901.6ms)
3. Consider optimizing fl/task/scheduler.h (463.5ms)

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

@zackees
zackees merged commit 0a4ff47 into master Apr 22, 2026
65 of 85 checks passed
@zackees
zackees deleted the fix-span-static-subviews branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant