LZ4 SIMD128 round, 30 October 2026

Select hybrid encoder E2: complete Heavy16 instructions fall 0.014356% and cycles fall 0.00712149%, preserving work, traffic, latency and page charges. Packed-fixture compression body instructions fall 3.239–3.956% with exact bytes. Retain upstream decoding and fastcpy; all four decoder experiments failed the packed-input screen.

The reusable crate is extracted from lz4_flex 0.14.0. Its original source receipt and MIT license remain. Registry upstream serves as an independent native oracle. The standard block format remains unchanged.

Scope Factory source SDK source
Fresh extracted RRT control 3c2609e5 d0e53afc
Frozen scalar microbenchmark 314fea66 d0e53afc
Rejected encoder E1 screen dfd9718a d0e53afc
Hybrid E2 screen 52301b18, encoder de0a6840 d0e53afc
Selected direct correctness probe 7efbba36 d0e53afc
Selected RRT source 945d81c5, documentation-only followup d0e53afc

Full identities, receipts, source snapshots and archive hashes are mapped in the evidence index. The selected source retains match-probe and the screened E2 encoder.

Fresh independent full-run audits and comparison pass with identical captured configuration and zero work differences.

Complete Heavy16 metric Fresh scalar control Selected E2 Change
Replicated instructions, including pages 81,295,083,464 81,283,413,097 -11,670,367
Complete cycles 327,750,805,928 327,727,465,194 -23,340,734
Replicated page instructions 42,588,960,000 42,588,960,000 0
Installed Wasm bytes 3,674,180 3,674,688 +508

Both complete 19,200 workflows, 594,000 steps, 180,000 endpoint messages, 360,000 frames and 1,024 canonical blocks. Peer traffic remains 8,741,623 bytes / 2,428 calls; self calls remain 856. Model duration is 29.4 s; root receipt-to- completion p50/p95/max remains 4.8/12.6/19.8 s, excluding ingress queues. Grown heap capacity remains 269,484,032 bytes, stable memory zero. Static data/heap boundaries and startup reset span increase 176 bytes; public Wire is identical. This is capacity/page-cost parity, not layout identity.

Recovery qualification passes 5/5 lifecycle checks on the selected Heavy image and 15/15 callback checks on a separate fixture from the same frozen tree, with expected traps 1/1/2. Its scope is fresh installation and same-current-image KEEP.

The baseline and candidate performance images use the pinned nightly-2026-10-15 compiler, Wasm64 SIMD128, opt3, thin LTO and one codegen unit, with no probe features. Each of 22 rows performs 32 codec operations using initialized reusable cohort buffers, separate setup/control/warmup updates and checks of every result. Each row has one measured sample; expanded batch sweeps and near-2 MiB inputs remain unqualified.

The packed inputs come from the real tripwire::encode_envelope(SharedBatch::from(Batch)) producer with public synthetic Request/Response/Notify/Event bodies. Frame counts 1/8/32/128/500 produce up to 219,267 raw bytes. Every candidate reuses the exact baseline files.

Compression input Scalar body I E2 body I Body change Whole update change
Repeat 65,536 B 12,496,635 9,486,587 -24.087% -3.887%
Packed 1 frame 6,100,571 5,903,003 -3.239% -1.592%
Packed 8 frames 11,331,803 10,934,171 -3.509% -1.677%
Packed 32 frames 26,219,259 25,229,659 -3.774% -1.741%
Packed 128 frames 85,797,659 82,403,835 -3.956% -1.759%
Packed 500 frames 315,548,891 303,406,459 -3.848% -1.687%

Random compression at 128/2,048/65,536 bytes and every decoder control are exactly unchanged. All 22 input/output hashes, operation counts, page charges and final footprints match. The E2 screen image is 302,782 bytes versus the 302,364-byte scalar image: +418 bytes (+0.138%). These sizes describe the compression fixture, not the complete RRT application.

Body Counter 0 covers the codec loop and its bookkeeping. Whole compression updates also decode every output locally and perform bytewise checks after that interval; whole decompression updates include post-clock checks. Whole costs therefore describe the complete validated fixture. Non-page charges include APIs, copies and computation. No loop/page subtraction, extrapolation or native wall-time performance claim is used. The full E2 comparison retains raw body, whole-update, page, cycle and output measurements.

E1's vector-first match scan increased packed compression body instructions by 4.790–5.738%. E2 restores the first eight-byte scalar mismatch return and forces its safe wrapper inline before bounded vector extension. Actual Wasm shows that early branch and the helper's v128.load, i8x16.ne, bitmask and ctz. Source review and compiled shape are separate from runtime evidence.

Rejected decoder Packed decoder body change, summed measured population Screen image change
A +34.1120% -103 B
B +32.3957% +1,552 B
C +32.2679% +1,897 B
D, preserving short copies +0.010144% +3,502 B

Shared fastcpy changes also increased A/B/C compression body instructions. Compression whole-update deltas additionally include decoder verification. D restored constant-size short-copy lowering but provided no packed gain. Frozen decoder comparisons retain those failures without attributing unprofiled costs to individual helpers.

Each scalar/E1/E2/A/B/C/D installed image passed 8,128 actual-Wasm cases. Upstream independently decoded all 7,814 Wasm-produced valid blocks per image; E1/E2 blocks exactly match scalar bytes. The remaining 314 adversarial cases produce 313 rejections and one correctly accepted prefix. Boundary lengths, offsets, alignments, truncations, output canaries and table thresholds are covered. Canaries show observed write bounds; bounded source access is also reviewed. Native tests do not substitute for installed-Wasm execution.

The separate selected match-probe image also passed all 16,896 direct helper cases: first mismatch positions 0–65 across every 16 × 16 input alignment pair. It repeats the public 8,128-case gate and has actual endpoint SIMD disassembly. This 306,737-byte correctness image ran zero performance rows. Its source is 7efbba36; the later 945d81c5 followup changes documentation only.

The old extraction-only control recorded unchanged pre-extraction costs and +133 image bytes. Its ephemeral raw files were lost after restart; retained audits provide historical corroboration. Initial compiler-lint, sparse host import and Unix-socket failures remain linked in the evidence index.