From 44c3a54cf0d0f65627a5993a129b324107f9fc58 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Sep 2008 01:07:16 +0200 Subject: libmpdclient: smaller input buffer Even for large responses, 16kB should be enough. There is no performance gain for larger buffers, even if MPD is local. --- src/libmpdclient.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libmpdclient.h') diff --git a/src/libmpdclient.h b/src/libmpdclient.h index c4a22b2d8..792894476 100644 --- a/src/libmpdclient.h +++ b/src/libmpdclient.h @@ -42,7 +42,6 @@ #include #include -#define MPD_BUFFER_MAX_LENGTH 50000 #define MPD_WELCOME_MESSAGE "OK MPD " #define MPD_ERROR_TIMEOUT 10 /* timeout trying to talk to mpd */ @@ -117,7 +116,7 @@ typedef struct _mpd_Connection { int error; /* DON'T TOUCH any of the rest of this stuff */ int sock; - char buffer[MPD_BUFFER_MAX_LENGTH+1]; + char buffer[16384]; size_t buflen; size_t bufstart; int doneProcessing; -- cgit v1.2.3