From 77f73a79dff698a6f70bda4a2c46d59b59074aaf Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Fri, 9 Nov 2012 22:02:34 +0100 Subject: [PATCH] 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. --- simgear/misc/zfstream.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5