Skip to content

Commit

Permalink
Tune buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
codeation committed May 23, 2024
1 parent e220237 commit 07a07b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07a07b8

Please sign in to comment.