diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 13:08:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 34cddaea7db5081743fca928e6e50842e23cc5db (patch) | |
| tree | decec6842c1b644d39646cf0a7afdfc210e36a58 /src/web/libc | |
| parent | 4e224b7c7e67fafcbe7359fcf534048e254b701d (diff) | |
| download | pardes-34cddaea7db5081743fca928e6e50842e23cc5db.tar.gz pardes-34cddaea7db5081743fca928e6e50842e23cc5db.zip | |
Typing tells g. where its edit ended, so no edit scans the whole file twice to find it
setEditText found the last edit's end by comparing the old and new texts from both ends and counting rows to it, twice over the file on every keystroke: edit-char grew with the file (+135% at 300k lines). Typing, deleting, Enter and Tab now pass the end they know (setEditTextEnd); the comparison stays for the edits that do not say (paste, pipes, s). perf edit-char: 50k lines 16661 -> 15286 us, 300k lines 30507 -> 22291 us (render alone ~13.6 ms of each, the render agent's).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/web/libc')
0 files changed, 0 insertions, 0 deletions
