summaryrefslogtreecommitdiff
path: root/tools/shared_libs_check.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 05:58:13 -0300
committerGabriel Schneider <[email protected]>2026-10-30 10:44:19 -0300
commitddb2554fff073eed0b73a43825b2c007c895bc4d (patch)
tree77db8d82afd23dc6e0395bc4ba21525bc6c8dfcd /tools/shared_libs_check.zig
parent541ebfa62ed966d74e1b7e93eb0d62e536d50e7d (diff)
downloadpardes-ddb2554fff073eed0b73a43825b2c007c895bc4d.tar.gz
pardes-ddb2554fff073eed0b73a43825b2c007c895bc4d.zip
replica: a far client's content cache and zstd: the session lists its join's blobs by BLAKE3 hash first (wire 16 `blobs`), the client finds each in the core it leaves or on disk ($XDG_CACHE_HOME/pardes/blobs, hashed again on load, a bad file a miss, the least recently used evicted past 1 GiB) and asks for the rest (`want`), and everything after the welcome goes in zstd envelopes (level 6 over 8 MiB for the join, an undo snapshot being a near copy of its text, then level 3), so `ssh -C` leaves the default command; a far client (through ssh, or PARDES_REPLICA_FAR) keeps what it was sent and, at its end, what it made; a hangup ends a remote client the normal way; through the box a client holding the blobs is drawn in 2.4 s where main took 7.0 to 11.9, and a first join of a session with undo in 7.1 s where main took 11.9; libzstd 1.5.7 vendored, its allocations on c_heap, a second copy refused by shared-libs-check; tests for the cache's verify-on-load, its eviction and a far join's blobs sent once; test/daemon.py's far clients
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/shared_libs_check.zig')
-rw-r--r--tools/shared_libs_check.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/shared_libs_check.zig b/tools/shared_libs_check.zig
index d18c6850..7b3174e4 100644
--- a/tools/shared_libs_check.zig
+++ b/tools/shared_libs_check.zig
@@ -45,6 +45,8 @@ const always = [_]Family{
.{ .what = "a second zlib", .symbols = &.{ "inflate_table", "inflate_fast", "deflate_slow" }, .most = 1 },
// One FreeType: the build's, which MuPDF is compiled against.
.{ .what = "a second FreeType", .symbols = &.{ "FT_Init_FreeType", "FT_New_Library" }, .most = 1 },
+ // One zstd: the build's, a far replica's stream (src/replica.zig).
+ .{ .what = "a second zstd", .symbols = &.{ "ZSTD_compressStream2", "ZSTD_decompressStream", "ZSTD_createCCtx_advanced" }, .most = 1 },
};
pub fn main(init: std.process.Init) !void {