From: Michael Tremer Date: Fri, 10 Jan 2025 17:58:18 +0000 (+0000) Subject: pty: Make the buffers significantly smaller X-Git-Tag: 0.9.30~473 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=439e879cc339f37949649c918a8fab7e57bc68fd;p=pakfire.git pty: Make the buffers significantly smaller 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 --- diff --git a/src/pakfire/pty.c b/src/pakfire/pty.c index 37bdb082b..7d76e4b0b 100644 --- a/src/pakfire/pty.c +++ b/src/pakfire/pty.c @@ -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