# Not kept Changes that were tried, passed the gate (every bus cycle identical), were measured, and did not pay, so they are not on `main` (methodology, "Prune what does not pay"). Each row has its numbers so nobody tries it again blind. How measured: `scripts/ab.sh` (three code layouts: default, `-align-all-nofallthru-blocks=5` and `=6`; each side built under each; `scripts/ab.py` alternates the two builds on one pinned CPU, best of the rounds, on sh2-bench's four workloads: the reference's harness_speed loop with the cache off and on, on the minimal harness and on the 32X's bus) and `scripts/ab-wasm.sh` (the wasm32 builds under Node 22.19, the same four workloads). CPU 30 is an E-core of the i9-13900K (4.3 GHz, no SMT sibling), the steadiest core on this shared machine; the absolute numbers are lower than an idle P-core's. The four ratios are in the order off / on / 32X off / 32X on; "overall" is their geometric mean. Run to run, an unchanged build moves by about ±2 % at these loads (15-20 on 32 cores), so rows inside that band are noise. | Change | Native (ab.sh) | wasm (ab-wasm.sh) | Why not | | --- | --- | --- | --- | | No allocation on the SDRAM and DMA paths: `sdram_burst`, `sdram_read`, `sdram_fill` and `dma_read_unit` on fixed arrays instead of Vecs, the INTC's request list a fixed array (2026-11-25, on `c050829`; the patch was kept aside, not committed) | default x0.985 (0.980 / 1.004 / 0.981 / 0.976), nf5 x1.006, nf6 x1.003; 5 rounds, load 19-20 | x0.994 (1.022 / 0.980 / 1.006 / 0.970); 4 rounds | inside the noise everywhere, the 32X-bus workloads (one SDRAM burst a loop iteration) included: the allocator's fast path, or LLVM removing the allocation, already makes them cheap. Worth trying again on a real 32X board, where the FRT's interrupts make `intc_update` (one Vec per call) run often | | `#[inline]` on the scheduler's `place`, `fetch_into`, `opcode`, `advance`, `issue` and `retire` (2026-11-25, on `61c7689`) | default x1.050 (1.064 / 1.059 / 1.043 / 1.034), nf5 x1.018 (one workload x0.994), nf6 x1.017; 4 rounds, load 18-20 | x0.987 (1.016 / 1.003 / 0.956 / 0.973); 4 rounds | a native gain on one layout and near the noise on two, and a loss on the target that decides (the browser) | | BusContext copy-back: how much there is to win (an experiment, not a candidate: the pins were not copied back after `read`, which is wrong) | default x1.005 (1.003 / 0.998 / 1.047 / 0.972); 4 rounds, load 17-18 | not measured | the copies around a callback cost nothing measurable; making them cheaper would need the pins as one `Pins` field of the chip, an API change for every host (`chip.irl` and the others), for no measured gain | | **The cached interpreter** (`src/blocks.rs`, feature `block-cache`; branch `cached-interpreter` at `eb7c747`, docs/cached-interpreter.md): decoded blocks keyed by PC and memory kind, verify and trust modes, invalidation on every write path | verify mode: default x0.891, nf5 x0.904, nf6 x0.900 (every workload 0.87-0.93); trust mode (default layout) x0.908; the feature compiled in but off x0.982; 4-5 rounds, load 16-18 | verify mode x0.897 (0.909 / 0.906 / 0.883 / 0.890); 4 rounds | slower everywhere, by about 10 %: with every fetch a bus cycle or a cache access the board and the program can see, a block can only save the decode, and the decode was already one indexed load of a packed record (step 1, `67652c5`); the block's own bookkeeping costs more than that. Exact (the gate passes in both modes) but it does not pay; kept on its branch as evidence for the JIT proposal and as the starting point for a turbo tier |