summaryrefslogtreecommitdiff
path: root/src/sam_edit.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 02:34:25 -0300
committerGabriel Schneider <[email protected]>2026-10-30 03:13:15 -0300
commitc892cf0c3246b6c41f8f67810d360c5ea0ff66ef (patch)
treeeed27b055334a7c55ce0b9c203ea4b74b371f5e8 /src/sam_edit.zig
parent44587446c2478de276b7c5c5a12063e6c7946b4e (diff)
downloadpardes-c892cf0c3246b6c41f8f67810d360c5ea0ff66ef.tar.gz
pardes-c892cf0c3246b6c41f8f67810d360c5ea0ff66ef.zip
a replica client's join costs the session's step its mutable state alone: the dump leaves the blobs out (walk.zig `Dump.deferred`: a `.blob`'s texts of 4 KiB and up, noted where they go) and its terminals' emulators (a size: the first delta brings each), the client's writer thread writes the welcome and the dump with the blobs put back in place, and each blob is pinned until written (memory.zig `pin`: its free put off); the texts the session never digested are hashed first on a thread of their own (walk.zig `unhashed`, `makeWords`), the join waiting a boundary for them
The client is unchanged: what it reads is the dump `dumpBytes` makes, byte for byte (a test splices one and compares). ReleaseFast, the session's worst boundary while three clients join one after another (`t2/join2.py`), before and after: typical (4.1 MB of files, 1 MB of scrollback, an 8.1 MB dump) 12.4 to 1.6 ms; big (38.6 MB, 8 MB, 76 MB) 51.3 to 1.5 ms; a 100 MB file open beside typical's (254 MB) 172.5 to 1.6 ms. Of the dump the step makes 113 to 122 KB. PARDES_REPLICA_STATS says each join's time and the state's size. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/sam_edit.zig')
0 files changed, 0 insertions, 0 deletions