]> git.mxchange.org Git - simgear.git/commitdiff
gzfilebuf choked when reading large, heavily compressed files.
authorThorstenB <brehmt@gmail.com>
Fri, 9 Nov 2012 21:02:34 +0000 (22:02 +0100)
committerThorstenB <brehmt@gmail.com>
Fri, 9 Nov 2012 21:04:11 +0000 (22:04 +0100)
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

index 5b391d207689deafbd3a7e9da8d983cac45f6465..004340d3fce06c6f4f2c5bc552552e5711fdf1c2 100644 (file)
@@ -127,7 +127,7 @@ private:
     int obuf_size;
     char* obuffer;
 
-    enum { page_size = 4096 };
+    enum { page_size = 65536 };
 
 private:
     // Not defined