From 07a07b87501040210c70929a7443f1e4549760f3 Mon Sep 17 00:00:00 2001 From: codeation <39458623+codeation@users.noreply.github.com> Date: Fri, 24 May 2024 00:23:05 +0200 Subject: [PATCH] Tune buffer size --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index d0e7f40..5586afe 100644 --- a/io.c +++ b/io.c @@ -113,7 +113,7 @@ static void io_start(FILE *source, pipe_buffer *target, gboolean is_stream) { exit(EXIT_FAILURE); } if (is_stream) { - g_io_channel_set_buffer_size(chan, 256 * 1024); + g_io_channel_set_buffer_size(chan, 64 * 1024); } target->in_id = g_io_add_watch(chan, G_IO_IN, async_read_chan, target); target->hup_id = g_io_add_watch(chan, G_IO_HUP, chan_error_func, target);