Reduce STREAM_CHUNK_SIZE to a more manageable 64k

512k might be a bit too much, as it can take time to read 512k from the
filesystem (and we're using a blocking read) or from the decoder. Going
down to 64k will make this more manageable and improve the response time
when streaming to multiple clients at the same time.
This commit is contained in:
Julien BLACHE 2010-02-02 21:06:13 +01:00
parent 848dd41993
commit 274dccf66c

View File

@ -69,7 +69,7 @@
*/
#define STREAM_CHUNK_SIZE (512 * 1024)
#define STREAM_CHUNK_SIZE (64 * 1024)
#define WEBFACE_ROOT DATADIR "/webface/"
struct content_type_map {