Repository navigation
Description
Goal
Close the ~2 ms/frame gap between PARLIO encode on ESP32-P4 (9.65 ms/frame) and the WS2812B 16-lane transmission budget (7.68 ms/frame) using single-core, single-Wave8 algorithmic changes only, enabling ISR-driven chunked streaming.
Out of scope (tracked separately, deliberately excluded from this umbrella):
- Dual-core encode (Wave8 opt: dual-core encode on ESP32-P4 #2527) — parallelism, not algorithm.
- WaveN / Wave4 (PARLIO clockless: encode/DMA is Wave8-bound — add intermediate WaveN (e.g. Wave4) to halve encode time + DMA RAM #2523) — encoder format change, not algorithm.
- L4 (combined byte+lane LUT, 64 KB) — see "Deferred / future" section below.
Where we are
From #2547 parlioEncodeBenchmark, measured on real P4 v1.3:
perpos_us ss=150804 → 12.57 µs / byte-position
frame_equiv_us ss=9651 → 9.65 ms / 16-lane × 256-LED frame
WS2812B TX 16 × 1.25 µs × 256 × 24 = 7.68 ms / frame
gap +1.97 ms (CPU ~26 % slower than DMA drain)
Stage cost breakdown:
- Strided gather + 128-B memcpy ≈ 1.1 µs per byte-position
- 16-lane expansion (byte-LUT) ≈ 7.0 µs
- 8-symbol spread-transpose ≈ 4.5 µs
- A big chunk of expansion is the 128-B intermediate-buffer round-trip (16 × 8 B store → 16 × 8 B read).
In-scope work items (checklist)
- L1 — Fuse expand+transpose via loop interchange + cached byte_lut pointers (~10–15 %, ~1.0–1.4 ms/frame) — primary algorithmic change.
- L2 — Direct write to
outputBuffer(skip engine's 128-B memcpy) (~770 µs/frame) — basically free plumbing once alignment confirmed. - L3 — Loop tiling: 2–4 byte-positions per iter (~5–10 %) — strided gather → u32-wide; ILP on in-order core.
- L5 — Alignment + wider load/store (~3–5 %) —
FL_ALIGNAS(16)propagation; route the 128-B store throughfl::simd::store_u32_4_aligned× 8 (PIEesp.vst.128.ipvia the feat(esp32-p4): PIE (xesppie) SIMD backend Tier-1 ops (#2536) #2538 backend). - L6 — Pre-transpose scratch to byte-position-major layout (modest + bigger refactor) — sequential gather, multi-lane u32 loads. Needs upstream channel-manager coordination, so probably batch with another upstream change.
- L7 — Pre-shifted spread LUT (
shifted_a[8][16], 1 KB) (~5–10 %) — removes the 8 runtime shifts per spread half.
Recommended prototype order
- L2 (direct write, basically free plumbing).
- L1 (fuse expand+transpose).
- L3 (loop tiling on top of L1+L2).
- L5 alignment / PIE-store polish.
- L7 pre-shifted spread LUT.
- L6 scratch layout change — combine with other upstream work.
Combined best-case prediction
9.65 ms → ~6.5–7.0 ms/frame on the byte-LUT path. Puts ISR-chunked streaming at the edge, and stacks multiplicatively with #2527 (dual-core) for a comfortable safety margin.
Hot-loop anatomy (per byte_position, for reference)
The engine (parlio_engine.cpp.hpp:981-994) does this 768×/frame for mDataWidth == 16:
u8 lanes[16];
for (size_t lane = 0; lane < 16; lane++) { // (A) strided u8 gather
lanes[lane] = mScratchBuffer[lane * mLaneStride + ... + byteOffset];
}
u8 transposed[16 * sizeof(Wave8Byte)]; // 128 B stack
fl::wave8Transpose_16(lanes, mWave8ByteLut, transposed); // (B) + (C) below
fl::memcpy(outputBuffer + outputIdx, transposed, blockSize); // (D) 128 B copyAnd inside wave8Transpose_16 (wave8.cpp.hpp):
Wave8Byte laneWaveformSymbols[16]; // 128 B intermediate
for (lane 0..15) wave8_expand_byte(lanes[lane], byteLut, &laneWaveformSymbols[lane]);
detail::wave8_transpose_16(laneWaveformSymbols, output); // spread-LUT 8 symbolsPer-lever detail
L1 — Fuse expand+transpose via loop interchange + cached byte_lut pointers ★
Eliminate the 128-B intermediate buffer. Pre-cache the 16 byte_lut entry pointers, then iterate symbols × lanes with direct loads:
FASTLED_FORCE_INLINE FL_IRAM
void wave8Transpose_16_fused(const u8 (&lanes)[16],
const Wave8ByteExpansionLut &lut,
u8 (&output)[128]) {
const Wave8Byte *e0 = &lut.lut[lanes[0]]; const Wave8Byte *e1 = &lut.lut[lanes[1]];
const Wave8Byte *e2 = &lut.lut[lanes[2]]; const Wave8Byte *e3 = &lut.lut[lanes[3]];
/* ... e4..e15 ... */
for (int s = 0; s < 8; ++s) {
const u8 l[16] = {
e0->symbols[s].data, e1->symbols[s].data,
/* ... e2..e15 ... */
};
spread_transpose16_symbol(l, output + s * 16);
}
}Saves: 16 × 8 B intermediate stores + matching reads + the per-lane 2-store sequence inside wave8_expand_byte. L1 cache holds each LUT row trivially (8 B); compiler may hoist into 2 u32 registers per lane.
Predicted: ~10–15 % on the full hot loop.
L2 — Direct write to outputBuffer
Pass outputBuffer + outputIdx straight in as the output arg of wave8Transpose_16. Remove the stack transposed[128] and the fl::memcpy. Requires outputBuffer + outputIdx to be 16-byte aligned, which it already is when outputBuffer is DMA-aligned and outputIdx is a multiple of 128 each iteration.
Saves: ~1 µs / byte-position × 768 ≈ ~770 µs / frame.
L3 — Loop tiling
Byte-positions are independent. Tile by 2 or 4 so the in-order core overlaps memory ops and the compiler emits a wider window of independent ops — same shape that won for the spread-LUT itself (#2533).
for (offset = 0; offset + 4 <= byteCount; offset += 4) {
u8 lanes0[16], lanes1[16], lanes2[16], lanes3[16];
for (lane 0..15) {
const u8 *p = &mScratchBuffer[lane * mLaneStride + startByte + offset];
lanes0[lane] = p[0]; lanes1[lane] = p[1]; lanes2[lane] = p[2]; lanes3[lane] = p[3];
}
wave8Transpose_16_fused(lanes0, byteLut, out + 0);
wave8Transpose_16_fused(lanes1, byteLut, out + 128);
wave8Transpose_16_fused(lanes2, byteLut, out + 256);
wave8Transpose_16_fused(lanes3, byteLut, out + 384);
out += 512;
}Saves: ~5–10 %, mostly via ILP on the strided gather (4 consecutive bytes per lane = 1 word load) and amortized branch / index arithmetic.
L5 — Alignment + wider load/store
Wave8ByteisFL_ALIGNAS(8)— bumpWave8ByteExpansionLut::lut[256]toFL_ALIGNAS(16)to let the compiler/PIE emit single 16-B loads per row.- Mark the engine's
transposed[128]FL_ALIGNAS(16)(or remove it via L2). - Propagate
__restrict__throughwave8Transpose_16overloads. - On P4, route the 128-B store through
fl::simd::store_u32_4_aligned× 8 — 8 ×esp.vst.128.ipvia the feat(esp32-p4): PIE (xesppie) SIMD backend Tier-1 ops (#2536) #2538 backend, instead of ~32 u32 stores.
Saves: ~3–5 %, stacks cleanly with L1/L2.
L6 — Pre-transpose scratch to byte-position-major layout
Today: scratch[lane * 768 + byteOffset] (strided gather). Restructure to scratch[byteOffset * 16 + lane] (sequential gather — 16 contiguous bytes per byte-position) — one wide u32 load yields 4 lanes' bytes.
Saves: strided gather is ~0.4 µs / byte-position (small); larger win is enabling u32-wide gathers and removing the 16-store-to-lanes[16] step.
Cost: layout change at the channel-manager / engine boundary — bigger refactor than the others. Probably worth combining with another upstream change rather than doing alone.
L7 — Pre-shifted spread LUT
Inside spread_transpose16_symbol, each spreadA(l[i]) << i is a runtime shift + OR. Pre-shift the spread LUT for each of the 8 lane bit-positions:
struct Wave8SpreadShiftedLut { u32 a[8][16]; u32 b[8][16]; }; // 1 KB total
// spreadA(v) << lane → shifted_a[lane][v >> 4]
// spreadB(v) << lane → shifted_b[lane][v & 0xF]Per symbol, the OR-reduce becomes 8 loads + 7 ORs (no shifts) per half × 2 halves = 30 ops vs current ~46 ops.
Saves: ~5–10 % on the spread-transpose stage (~0.2–0.4 ms/frame).
Deferred / future
L4 — Combined byte+lane LUT (Wave8LaneShiftedLut[16][256][16] = 64 KB)
Pre-compute, for each (lane_position, byte), the byte's complete contribution to the 16-byte output for all 8 symbols — already shifted to its lane bit position:
struct FL_ALIGNAS(16) Wave8LaneShiftedLut { u8 lut[16][256][16]; }; // 64 KB total
u8 acc[16] = {0};
for (lane 0..15) {
const u8 *contrib = lut.lut[lane][lanes[lane]];
for (i 0..15) acc[i] |= contrib[i];
}
memcpy(out, acc, 16);Theoretical impact: algorithmic ceiling, ~2× on the hot loop (~5 ms / frame) — would put encode comfortably under TX.
Why deferred: 64 KB SRAM commitment is a significant slice of internal RAM that affects every PARLIO consumer (and crowds other features). Not worth the memory tradeoff while the other levers above are unmeasured. Revisit only if L1–L7 (combined) fail to close the gap, or if a future variant could share the table across multiple buffers.
Measurement plan
Extend parlioEncodeBenchmark (#2547) to compare current vs each prototype back-to-back. Same volatile-sink, same input, same iteration count. Capture via the existing esp_rom_printf → COM25 path until #2541 fixes the RPC routing. Gate prototypes behind compile flags so they're A/B-able from one firmware.
Related
- Shipped baselines: perf(wave): spread-LUT bit transpose — ~2x transpose / ~1.24x encode on ESP32-P4 #2534 (spread-LUT transpose), perf(wave8): byte-indexed expansion LUT (#2526) — 1.66x on ESP32-P4 #2539 (byte-LUT expansion)
- Multiplicative / orthogonal levers: Wave8 opt: dual-core encode on ESP32-P4 #2527 (dual-core), PARLIO clockless: encode/DMA is Wave8-bound — add intermediate WaveN (e.g. Wave4) to halve encode time + DMA RAM #2523 (WaveN)
- Bench harness: perf(parlio): bench encode hot loop with SRAM/PSRAM placements #2547
- Routing block: bug(esp32p4): testSimd RPC write-timeout — Serial routes to UART0 instead of USB-Serial-JTAG #2541
Activity
[-]perf(parlio/wave8): single-core algorithmic levers to close the ISR-streaming gap (~2 ms/frame)[/-][+]perf(parlio/wave8): umbrella — single-core algorithmic optimizations to enable ISR-chunked streaming[/+]zackees commentedon May 29, 2026
Re-evaluation: L1 + L2 + L3 measured on ESP32-P4 — predictions were too optimistic; gap NOT closed
Implemented L1 (fused expand+transpose), L2 (direct write to output), and L3 (4-byte-position tiling) as bench variants (branch
perf/parlio-l1l2l3; extends PR #2547 with measurement-only kernels). Captured on real ESP32-P4 v1.3, 12,000 byte-positions per measurement, SRAM scratch + SRAM output (PSRAM already proven ×1.00 in PR #2547):Conclusion: L1 + L2 + L3 cannot close the ~2 ms/frame ISR-streaming gap. Best measured combo (L2 alone) is 9,308 µs/frame vs target 7,680 µs — still +1,628 µs / 21 % over budget.
Why each lever underperformed
L1 — Fused expand+transpose actually regressed (-1 % vs baseline)
The hypothesis was that eliminating the 128-B
laneWaveformSymbolsintermediate buffer would save real time. It did not. Caching the 16Wave8Byte*row pointers across the symbol loop pushes 16 × 4 B = 64 B of pointer state through the register file. On RV32 (32 GPRs) — together withbyte_lut.lutbase, the output pointer, loop counters, and the per-symboll[16]working set — that exceeds the register budget and forces the compiler to spill the pointers to stack repeatedly.Meanwhile the baseline's
laneWaveformSymbols[16]is naturally L1-cached sequential stack memory: writes are cheap (~1 cycle per store, no latency dependency), and the subsequent symbol-by-symbol reads are L1 hits. The intermediate buffer is the compiler's natural register-file extension for this access pattern — eliminating it is a pessimization.L2 — Direct write helped, but only +3.5 % (predicted ~+8 %)
The engine's
fl::memcpy(outputBuffer + outputIdx, transposed, 128)is already very cheap: 32 u32 stores from a stack array to a DMA-aligned buffer, fully pipelined on the in-order core. The estimated 1.1 µs / byte-position for "gather + memcpy" turns out to be mostly gather; the memcpy itself is closer to 0.3 µs. So L2 saves ~342 µs / frame — real, but not the lever I'd hoped for.L3 — Tiling helped a tiny amount in isolation, undone by L1's regression
On top of L1's regression, L3's ~+3 % tiling win brought us from 99 → 102 vs baseline. Not nothing, but not a route to 26 % improvement either.
What this means for the umbrella
Of the in-scope (no-L4, no-#2527, no-#2523) levers, the predicted gains were too optimistic across the board. The remaining items on the checklist look weaker than I projected:
Realistic projection
Stacking L2 + L5 + L7 ≈ 9.65 → ~8.5 ms / frame. Still ~1 ms above the 7.68 ms target. The remaining single-core single-Wave8 algorithmic options that respect the no-L4 constraint cannot close the gap.
Recommendation
Bench branch (RPC + boot bridge) for reproducing:
perf/parlio-l1l2l3layered on PR #2547.Refs PR #2547 (the bench) · branch
perf/parlio-l1l2l3(these variants) · #2527 (dual-core, multiplicative) · #2523 (WaveN, orthogonal) · #2541 (RPC routing).perf(parlio bench): add #2548 L4 lazy-PSRAM prototype + decisive nega…
zackees commentedon May 29, 2026
Re-evaluation #2: lazy / PSRAM-allocated L4 — decisively does not work (7.7× slower)
Per follow-up from @zackees: tried L4 with the original 64 KB SRAM commitment swapped for lazy allocation from PSRAM (
fl::span<fl::u8, FL_L4_LUT_BYTES>fixed-extent,heap_caps_malloc(MALLOC_CAP_SPIRAM)). The intent was to keep zero static SRAM footprint and let the L2 cache hide PSRAM latency the same way it does for every other PARLIO access pattern (#2547).What got built
lut[8 symbols][16 lanes][256 bytes][16 output bytes] = 524,288 bytes (512 KB). This is the natural L4 size — anything smaller drops the symbol dimension and collapses to L7.spread_transpose16_symbolon dummy lanes (one lane non-zero at a time) and store the contribution slot. Built once at engine init, lives entirely in PSRAM.Branch:
perf/parlio-l1l2l3(now layered with L4 on top of L1/L2/L3).Measured on ESP32-P4 v1.3
Why it fails — and why the failure is structural, not implementation
The P4's L2 cache is 128 KB. The L4 LUT is 512 KB. Per byte-position the kernel touches 128 distinct (lane, byte) entries, each in a different 16-byte slot scattered across the 512 KB working set — they evict each other from L2 every iteration. Every miss then goes to PSRAM at ~100–200 cycle latency, which dominates any algorithmic saving and yields the 7.7× regression.
This is the exact opposite of what we observed for every other PARLIO access pattern in #2547 (×1.00 SRAM vs PSRAM for
scratchandoutput). The difference is working-set size:The same will be true of any LUT large enough to cover all 8 symbols in this combined-lane-byte-symbol structure — the natural lower bound is the 512 KB layout above, well over L2. Shrinking the LUT requires dropping either the per-symbol or the per-byte dimension, at which point the structure collapses back to L7 (the 1 KB pre-shifted spread LUT, which fits in cache trivially).
What this means for the umbrella
Honest summary on the umbrella checklist
If L7 + L2 land best-case (~10 % combined), encode floor is ~8.7 ms/frame — still ~1 ms above the 7.68 ms TX target.
Recommendation: keep #2548 open only for L2 + L7 + L5 (small wins worth landing), and acknowledge that closing the gap to enable ISR-chunked streaming requires #2527 (dual-core) — multiplicative on top of anything in this umbrella.
Refs: bench branch
perf/parlio-l1l2l3· L1/L2/L3 result #2548-comment-4580594293 · PSRAM equivalence #2547 · #2527 #2523perf(parlio bench): add #2548 L4-NIBBLE (32 KB, fits L2) + result
zackees commentedon May 29, 2026
Re-evaluation #3: nibble-indexed L4 (32 KB, fits in L2) — also doesn't win (1.69× slower)
Per follow-up: tried a nibble-indexed L4 that exploits the wave8 expansion's existing nibble structure (hi nibble → symbols 0..3, lo nibble → symbols 4..7) — small enough (32 KB) to fit comfortably in P4's 128 KB L2 cache.
Layout
Built via
spread_transpose16_symbolon dummy lanes (correct by construction). Kernel does 2 nibble lookups per lane × 16 lanes, OR-reduced into the 128-byte output.Measured on ESP32-P4 v1.3
Why even the cache-resident version loses
Nibble L4 is dramatically better than byte L4 (no more PSRAM cache misses — every load hits L2) but still loses to the current spread_lut. The op-count math doesn't favor it on RV32:
spread_lutkSpreadNibble) + 32 cheap shifts + 28 ORs + 16 storesEach L2 load has 2–3 cycle latency before the OR depending on it can issue — and the in-order RV32 core can't hide that with other independent work in this kernel. Trading the current path's cheap 1-cycle shifts for L2 loads is a net loss.
Generalizable lesson
On the in-order RV32 P4 with cheap shifts (1 cycle, no latency), substituting LUT loads for arithmetic doesn't pay unless the saved work substantially exceeds the load-use latency cost. The current
spread_lutis already near-optimal for this combination of architecture and problem. L4 at any viable size (whether L2-thrashing 512 KB or cache-resident 32 KB) does not beat it:Status on the umbrella
L4 is now empirically infeasible on P4 at every viable LUT size we've tried. Permanently deferred — not for memory cost (lazy PSRAM solves that for any LUT ≤ 128 KB) but for load-use latency on the in-order core. The path forward is the same as the prior re-evaluation:
Bench branch (with L1/L2/L3/L4/L4-nibble all reproducible):
perf/parlio-l1l2l3.zackees commentedon May 30, 2026
New strategy: a measurement-first deep-dive with two untried lever classes
After the L1/L2/L3 measurements (+3.5 % / -1 % / +2 %) and the L4-byte (0.13×) / L4-nibble (0.59×) failures, I've drafted a new multi-phase plan that's built around measuring ground truth first and then targeting the two lever classes we have not yet exercised. Capturing it here so the strategy is public before any of the prototype branches land.
Updated hypothesis
The L4 failures (byte + nibble) established a sharp generalizable result:
That rules out any LUT that grows the working set or merely substitutes loads for arithmetic. What it does NOT rule out:
laneWaveformSymbolsintermediate for register-resident data of the same size, which the L1-fused-pointer-array version got wrong.esp.vst.128.ipis wired up in feat(esp32-p4): PIE (xesppie) SIMD backend Tier-1 ops (#2536) #2538's backend and reduces the engine's 32 × u32 store to 8 × 128-bit stores. The L5 lever was never actually built; L2 alone won only +3.5 % because the source side wasn't aligned/vectorized.Phased execution plan
gather / expand / transpose / storeseparately via__clock_cycles()wave8Transpose_16— confirm-O3actually applies, find spills, findlw → arith-on-load-deststallskSpreadPreShifted[8 lane_pos][16 nibble]. Replaces 256 runtime shifts per byte-positionFL_ALIGNAS(16)everywhere + 8 ×esp.vst.128.ipinstead of 32 × u32 stores. Precondition for L2 to actually win__builtin_prefetchon strided gather — conditional, only if Phase 0 shows gather > 10 %Phase 0 decision tree (drives prioritization)
Once instrumentation lands:
transpose > 60 %→ Phase 2 (L7) is top priority (pre-shifted spread directly attacks symbol-body shifts).expand > 30 %→ Phase 3 (fused v2) is top priority (expand is memory-bound; register-cached version is the real fix).store > 25 %→ Phase 4 leapfrogs (vectorized PIE store is the lever).gather > 15 %→ Phase 6 (prefetch) before Phase 5.Stop condition (when to declare single-core unclosable)
After Phases 0–4, declare unclosable if all of these hold:
transpose + expand > 75 %(memory-bound),Then the verdict is: single-core single-Wave8 ceiling reached; closing the gap to enable ISR-chunked streaming requires #2527 (dual-core, multiplicative) or #2523 (WaveN, halves both encode + TX).
Branch / PR strategy
perf/parlio-l1l2l3(the existing bench harness).perf/wave8-l7-preshifted-spreadperf/wave8-fused-v2perf/parlio-l5-aligned-pie-storetests/fl/channels/wave8.cppover 100k random vectors pass for each variant.Why I think this clears the bar L4 didn't
L4 failed because both variants traded cheap arithmetic for memory traffic — at LUT sizes that either thrashed L2 (512 KB) or paid load-use latency in the symbol loop (32 KB). L7 doesn't grow memory traffic at all — it keeps the same 32 loads per
spread_transpose16_symbolcall but the loaded values are pre-shifted. Fused v2 also keeps the same load count but moves the intermediate from a 128-B stack buffer into 16 register-resident u32 pairs, avoiding both the L1 pointer-spill regression AND the byte-LUT path's stack ping-pong. Neither lever fights the in-order RV32's strengths.If both hypotheses are wrong and L7 + fused v2 also disappoint, the stop condition kicks in cleanly — we'd have evidence that the spread_lut path is at a fundamental issue-port ceiling on this core.
Plan file is locked in locally; will edit this issue once Phase 0 numbers are in.
perf(parlio bench): #2548 Phase 0 — per-stage cycle-counter breakdown
zackees commentedon May 30, 2026
Phase 0 result: per-stage cycle-counter breakdown captured ✅
Wired up cycle-counter (
__clock_cycles()) timing of the production hot loop inAutoResearchParlioEncode.h, withasm volatilememory barriers between stages. Captured on real ESP32-P4 v1.3 (8000 iters):Decision tree result vs the plan thresholds
transpose > 60 %→ Phase 2 (L7 pre-shifted spread LUT) — AT THE THRESHOLD (57 %), promote to top priorityexpand > 30 %→ Phase 3 (register-cached fused v2) — HIT (37 %), high prioritystore > 25 %→ Phase 4 (PIE vectorized store) — MISS (2.5 %), defergather > 15 %→ Phase 6 (__builtin_prefetch) — MISS (3.4 %), skipExpand + transpose together account for 94 % of the hot loop. That's the clear signal: stack L7 (Phase 2) + register-cached fused v2 (Phase 3) and we hit nearly all the available surface. L5 (Phase 4) would only chip at the 2.5 % store stage — defer unless the gap persists. Prefetch (Phase 6) at 3.4 % gather is in the noise — skip.
Implications for the umbrella's optimistic estimates
Next action
Implementing Phase 2: L7 pre-shifted spread LUT (512 B) now. Branch
perf/parlio-l1l2l3continues to accumulate bench variants; a clean PR off master comes once a winning combination is validated.Bench snapshot in commit
0f8f1f43bdon branchperf/parlio-l1l2l3— reproducible viabash autoresearch esp32p4 --simd --no-fbuildwith-DFL_BENCH_PARLIO_AT_BOOT=1(currently set true inAutoResearch.ino).perf(parlio bench): #2548 Phase 2 — L7 pre-shifted spread LUT (negati…
perf(parlio bench): #2548 Phase 3 — register-cached fused v2 (negativ…
zackees commentedon May 30, 2026
Final verdict: Phase 2 + Phase 3 both failed → stop condition met → single-core single-Wave8 ceiling reached
Phase 0 instrumentation pointed at transpose (57 %) and expand (37 %) as the two real targets. Phase 2 (L7 pre-shifted spread LUT) and Phase 3 (register-cached fused v2) attacked them directly. Both regressed.
Complete measured table on ESP32-P4 v1.3
Why L7 and fused v2 both lost — generalized lesson
This is now the fourth confirmation of the same architectural truth:
Stop condition (from the plan) — all 4 conditions met
transpose + expand = 94 %of total (> 75 %)Final umbrella state
Realistic single-core floor with L2 (and possibly L5 at ~2 %) = 9,200 µs/frame. Still ~1.5 ms over the 7,680 µs WS2812B 16-lane TX target → ISR-chunked streaming requires the CPU to keep ahead of DMA drain, which is unachievable without:
What's worth landing from this umbrella
L2 alone as a small, low-risk PR off master:
parlio_engine.cpp.hpp:989to passoutputBuffer + outputIdxdirectly intowave8Transpose_16and remove the stacktransposed[128]+fl::memcpy.Close the umbrella with this verdict and reorient toward #2527.
Bench branch:
perf/parlio-l1l2l3(commitb17bfb1e60) — all 9 variants reproducible viabash autoresearch esp32p4 --simd --no-fbuildwithFL_BENCH_PARLIO_AT_BOOT=1.perf(parlio): #2548 write transpose directly into DMA buffer (L2) (#2553
perf(parlio bench): add #2548 L1/L2/L3 variant kernels — measurement …
perf(parlio bench): add #2548 L4 lazy-PSRAM prototype + decisive nega…
30 remaining items
perf(parlio): #2548 add eager-queue + encode/wait breakdown instrumen…
perf(parlio): #2548 add eager-queue + encode/wait breakdown instrumen…
perf(parlio): #2548 enable eager-queue by default — encode/TX now int…
perf(parlio): #2548 extend BF1 chipset-aware encode to 2/4/8-lane Wav…
perf(parlio) + lint: gate eager-queue to fits-in-ring frames + ban es…
refactor(channels): split detail/wave3.hpp + wave8.hpp into .h + .cpp…
feat(i2s): Phase 2b step A — inline register-level init on modern per…
feat(i2s): Phase 2b step B — DMA descriptor + esp_intr_alloc ISR (#3526…
feat(i2s): Phase 2b step C — GPIO mux routing for I2S1 lanes (#3526) (#…
feat(i2s): Phase 2d slot swap — BusTraits<FLEX_IO, 0> → modern unifie…
feat(i2s): Phase 2e — delete Yves, singleton peripheral, variable tim…
docs(i2s): rewrite README for modern engine (#3526 Phase 8 / #3512 Ph…
feat(i2s): wire wave8 encoding into engine + routeLanePin call (#3526) (
docs(i2s): document open bench debug on tx_bits_mod (#3526 / #3515) (#…
fix(i2s,rmt-rx): 32-bit sample encoding + classic-ESP32 capture fixes (…