summaryrefslogtreecommitdiff
path: root/src/sam_edit.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 02:43:11 -0300
committerGabriel Schneider <[email protected]>2026-11-18 04:23:09 -0300
commit0045636495bf2baf77c8b0eb63e45feeffa016ac (patch)
treecf811f59f82b0eeebda178d11c2bbecfd4f473ea /src/sam_edit.zig
parent392d509c8435f975ae25b64ea5d61eeecabbea90 (diff)
downloadpardes-0045636495bf2baf77c8b0eb63e45feeffa016ac.tar.gz
pardes-0045636495bf2baf77c8b0eb63e45feeffa016ac.zip
file watch: a text's watch armed over its open (file_watch.applyEffect) no longer reads and hashes the file again to know the disk is still what the open read: readHost keeps, for each of its last eight whole reads, the path, the buffer it returned and the file's identity (inode, size, times) before reading (fs.last_reads), and an arm whose pane's content is that very buffer, unedited, compares the file as it is now with it, reading again (reloadPane) when it changed, or the content came from elsewhere (a slim dump's Restore, which the watch fills from disk); strace: medium.zig opened 3 -> 2 times by a start; tui medium.zig (3.2 MB), perf stat to the kill at the first frame, best of ten interleaved: 55.4M -> 53.6M instructions:u, 10.1 -> 8.8 ms (load 4); tui core-test 819/958 (139 skipped), shell-test 993/996, behaviour-test 269/273 (the four addon ABI tests the base fails), pane-test 180/181, addon-test 5/5, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's); gui unit-test 1582/1590 (the base's), the frame corpus 77/77 against mbase; test/daemon.py, --upgrade (tui and gui, from the base build), --games and --window-clients (its PDF window case run) pass
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/sam_edit.zig')
0 files changed, 0 insertions, 0 deletions