summaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 04:13:46 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit7c59482436656443b698e867c423b27dd365a96c (patch)
treecffb028a9682b8fadf41efd4793f668f2e6151fc /src/linux
parent21f322a119ca688a2bfec6402333432e4ec60d1d (diff)
downloadpardes-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/linux')
0 files changed, 0 insertions, 0 deletions