]> git.ipfire.org Git - pakfire.git/commitdiff
pty: Make the buffers significantly smaller
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 17:58:18 +0000 (17:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 17:58:18 +0000 (17:58 +0000)
We don't really need that much buffer space here and it probably allows
for better CPU caching if the entire struct is smaller.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pty.c

index 37bdb082bdf4c38d74a17dde4b6575e6c8448637..7d76e4b0b691a215702931c9ee83442c672a50f2 100644 (file)
@@ -42,7 +42,7 @@ struct pakfire_pty_stdio {
        unsigned close_fd:1;
 
        // Buffer
-       char buffer[64 * 1024];
+       char buffer[4096];
        size_t buffered;
 
        // Terminal Attributes