From 439e879cc339f37949649c918a8fab7e57bc68fd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 10 Jan 2025 17:58:18 +0000 Subject: [PATCH] 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 --- src/pakfire/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3