summaryrefslogtreecommitdiff
path: root/core/Stream.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 20:15:17 -0300
committerGabriel Schneider <[email protected]>2026-11-21 00:59:00 -0300
commitf8b3deb973fefeacf720d055b8e319425d7b846a (patch)
tree3ae6f1d26f665fbc3c5dad3d43096bc878065325 /core/Stream.zig
parent98d8dc2e6518ddbde7582751dbd55ccf8d6c88ac (diff)
downloadpardes-f8b3deb973fefeacf720d055b8e319425d7b846a.tar.gz
pardes-f8b3deb973fefeacf720d055b8e319425d7b846a.zip
normal: C and Alt-C walk the lines on from the row they last tried: the bytes soak's one hang (s0-2, seed 0 at 30 ms: the session's own C at row 41,775 of a flood, normal.multiSelAction) was the copy arm trying row after row while a line is too short for the column, each try two offsetAt (lineStartOffset from the text's start) and two positionAt (lineAtOffset from the text's start): quadratic in the rows skipped, so a C or Alt-C on a column no near line reaches froze the editor on a long file of short lines; FIRST the test (50,000 lines, only the first and the last reach column 3: C, then Alt-C back, each bounded by the instructions this thread runs, perf_event_open's instructions:u as pardes-perf's gate counts them): on the base C took 306,247,585,476 instructions; then the fix: LineWalk, a line's start carried from try to try, walked forward or back a line at a time, and its cell the column's offset or null where the line ends before it or a grapheme spans it (graphemeStart of the clamped column equal to the column, the old test); C now 194 million in Debug, about 3,900 a line; Alt-s's per-line walks from the start are bounded by max_selections passes as Text.setRanges's own conversion is, and left; tui core-test 865/1022 (157 skipped), shell-test 1062/1065, term-test 18/18, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 0 of 144 failed, gui unit-test 1660/1664 (BaselineHarnessMismatch its one failure); the frame and perf gate vs tree2 PASS: 77/77 frames, perfab +0.106% (threshold 0.4%), perfops 121 counts within 0.1% (largest +0.0306%)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Stream.zig')
0 files changed, 0 insertions, 0 deletions