diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 04:13:46 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 7c59482436656443b698e867c423b27dd365a96c (patch) | |
| tree | cffb028a9682b8fadf41efd4793f668f2e6151fc /src/mouse.zig | |
| parent | 21f322a119ca688a2bfec6402333432e4ec60d1d (diff) | |
| download | pardes-7c59482436656443b698e867c423b27dd365a96c.tar.gz pardes-7c59482436656443b698e867c423b27dd365a96c.zip | |
An Edit text block is found in linear time: only a . line is parsed again
Finding where an Edit block ends parsed the whole block again for every
line, copying it into the scratch arena each time: a 10k-line $a block
took minutes and tens of GB. sam_edit.waitsFor says what the block waits
for, and while that is a text block's . line, only such a line is parsed
again (editEnd, shared by Messages and completeEnd), its copy freed. A
10k-line block now takes well under a second and 50 MB of scratch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/mouse.zig')
0 files changed, 0 insertions, 0 deletions
