Design decisions

272. The trace's overhead bar is +20% over the untraced interpreter (2026-11-22)

  • Decision. Recording a run may make it at most 1.2x slower than the same run untraced (ten_million_steps_fit_the_debugging_budgets in crates/cpl-interp/tests/trace_log.rs asserts it); tracing off costs nothing, since the interpreter is built once over a no-op observer.
  • Why. Ryan's target: "at most like +20% to interpreter speeds". It replaces the debugger lane's proposed absolute budget (10^7 steps in 1 s). Per-step hooks cannot meet it (dispatch alone is 1.30x / 1.49x), so the path is snapshot-and-replay (plan/domains/debugger/design/trace-replay.md).
  • Reverse. Change the 1.2 bound in that test.