From: ThorstenB Date: Fri, 9 Nov 2012 21:02:34 +0000 (+0100) Subject: gzfilebuf choked when reading large, heavily compressed files. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77f73a79dff698a6f70bda4a2c46d59b59074aaf;p=simgear.git gzfilebuf choked when reading large, heavily compressed files. Apparently a 4K buf isn't enough. 64K seem much better ;-). Real solution may be an adaptive buffer size in gzfilebuf. --- diff --git a/simgear/misc/zfstream.hxx b/simgear/misc/zfstream.hxx index 5b391d20..004340d3 100644 --- a/simgear/misc/zfstream.hxx +++ b/simgear/misc/zfstream.hxx @@ -127,7 +127,7 @@ private: int obuf_size; char* obuffer; - enum { page_size = 4096 }; + enum { page_size = 65536 }; private: // Not defined