From 4347114455a605f5d1f7da629e56d189a97e5967 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 17 Jun 2010 11:47:25 +0200 Subject: client: increase send_buf from 4kB to 16kB this greatly improves performance of commands that return a lot of data, e.g. search results or recursive content of a directory, while being connected to local mpd via tcp/ip socket. --- src/client_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client_internal.h b/src/client_internal.h index 8bcda78e7..2b1b92433 100644 --- a/src/client_internal.h +++ b/src/client_internal.h @@ -55,7 +55,7 @@ struct client { size_t deferred_bytes; /* mem deferred_send consumes */ unsigned int num; /* client number */ - char send_buf[4096]; + char send_buf[16384]; size_t send_buf_used; /* bytes used this instance */ /** is this client waiting for an "idle" response? */ -- cgit v1.2.3