summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 15:54:00 -0300
committerGabriel Schneider <[email protected]>2026-11-26 15:54:00 -0300
commitdc82c33cf9abb83c355e213c10aaec3d4ea29d77 (patch)
tree626f65c3fcd473e65169c8aca5637c737b883bd7 /test
parent1e9bb9c14e5d1c32e2bae774805148b8554ea8fb (diff)
downloadpardes-dc82c33cf9abb83c355e213c10aaec3d4ea29d77.tar.gz
pardes-dc82c33cf9abb83c355e213c10aaec3d4ea29d77.zip
test/perf: pardes-perf's pump ends a step as a frontend's does, the terminals sized to the layout it settled on (Pardes.sizeTerminals, as Pardes.settle has it), so the terminal cell's resize steps resize its emulator again (the final integration's perfops: the candidate's `pardes-perf --reps 1` exited 1, `error: TerminalDidNotResize`, so no per-operation count of the round could be taken); THE CAUSE: ztlypnxr 5dab435d7262 (M2's stack) moved a terminal's resize out of `update` into `settle`, a pump's step end, and pardes-perf's `pump` drained the effects alone, never sizing the terminals, so `resize_rows`/`resize_cols` found the emulator at its old size (perf.zig:955); THE FIX: `pump` calls `core.sizeTerminals()` before it drops the effects (no pty here, none performed); the cell now times what a frontend's step does for a resize, the reflow included; TEST CODE ONLY; RUN: the gate's perfops run above fails; with this change perfpfx (gui ReleaseFast) builds and perfops runs all 121 counts against w2base (the installed build's tree): the largest growths image-frame +1.81% (per-op, all four fixtures) and terminal on all +1.57%, client-delete-undo on longline +0.57%, every other count within +0.02% or lower, 14 counts more than 2% lower (body-appends -4.5 to -5.3%, client-key-down -3.1%, wheel, key-right, page-down -3.2% and render -2.9% on longline); load 1.5 to 2.5
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test')
-rw-r--r--test/perf.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/perf.zig b/test/perf.zig
index ad873691..bd5729d7 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -2241,6 +2241,10 @@ fn filePane(core: *pardes.Pardes) ?usize {
}
fn pump(core: *pardes.Pardes) void {
+ // A frontend's step ends sizing the terminals to the layout it settled
+ // on (Pardes.settle): a resize's emulator and pty are its, not the
+ // update's. Its effects are dropped, never performed (no pty here).
+ core.sizeTerminals();
while (core.nextEffect()) |_| {}
}