You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: test whether many small dispatch cuts add up on the VM #604
Proposal: treat small branch- and dispatch-count reductions in the VM loop that each measure as noise as a bundle, on the theory that together they might push the dispatch jump's branch history under the CPU predictor's capacity and give a larger, non-linear speedup.
Status
The bundle has effectively been tried.
The superinstruction family listed under "R3. Faster dispatch" in docs/design/engine-performance.md landed many such reductions together: retired instructions fell about 28% on C-LEARN and 34% on WORLD3, but branch misses moved far less than branches (-2.6% against -6.3% in one measurement).
The removed dispatches were the easy-to-predict ones, so no threshold effect appeared.
Removing bounds checks, the other candidate, needs unsafe (the engine crate denies it) and measured as zero gain on its own.
The remaining lever for mispredicts is a different dispatch mechanism (#601).
changed the title [-]engine: bundle marginal branch/dispatch reductions to test for a CPU predictor threshold[/-][+]engine: test whether many small dispatch cuts add up on the VM[/+]on Oct 12, 2026
Effectively tested: the landed superinstruction family cut instructions ~28% but branch misses only ~2.6% with no threshold effect (engine-performance.md R3); the remaining lever is #601.
Activity
[-]engine: bundle marginal branch/dispatch reductions to test for a CPU predictor threshold[/-][+]engine: test whether many small dispatch cuts add up on the VM[/+]bpowers commentedon Oct 12, 2026
Closing as won't fix.
Effectively tested: the landed superinstruction family cut instructions ~28% but branch misses only ~2.6% with no threshold effect (engine-performance.md R3); the remaining lever is #601.