repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
7740eb9
parent
ef41342
author
Eric Bower
date
2025-10-13 16:49:50 -0400 EDT
refactor: increase pty buffer sizes

This improves performance when writing to ghostty-vt
1 files changed,  +2, -2
M src/daemon.zig
+2, -2
 1@@ -77,7 +77,7 @@ const Session = struct {
 2     pty_master_fd: std.posix.fd_t,
 3     child_pid: std.posix.pid_t,
 4     allocator: std.mem.Allocator,
 5-    pty_read_buffer: [4096]u8,
 6+    pty_read_buffer: [16384]u8,
 7     created_at: i64,
 8 
 9     // Terminal emulator state for session restore
10@@ -100,7 +100,7 @@ const Session = struct {
11 const Client = struct {
12     fd: std.posix.fd_t,
13     stream: xev.Stream,
14-    read_buffer: [4096]u8,
15+    read_buffer: [16384]u8,
16     allocator: std.mem.Allocator,
17     attached_session: ?[]const u8,
18     server_ctx: *ServerContext,