Verba/Rapida

Experiments #173km

Move the hot prefix cache's trim copy off the request's path: run `trimmedCopy` after the terminator is...

stacked

What was tested

Move the hot 's trim copy off the request's path: run `trimmedCopy` after the terminator is published (`finishSlot`, `src/scheduler.zig:4663`; `HotPrefixCache.commitWithMediaState`, `src/prefix_cache.zig:973`), keeping the slot's KV alive until the copy has read it (the conn thread may free the slot once the terminator is out, row 173ks). Measured 5.8 and 6.6 ms a request on the build (row 173kt); lossless; a pair on the 50 sessions and on the general set, each claiming only its own gain; it must also hold on general text (Federico, 2026-11-20)

Model and setup

the request tail

Expected gain

up to about 6 ms a request (measured on the probe build)

Where the idea came from

row 173kt

Outcome

stacked 2026-11-20 into row 173kstk (coordinator: tiny lossless scored together; its own identity check is step 1 there, `2026-11-20-mac-r173kstk-request-tail-stack/README.md`)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built