[issue20962] Rather modest chunk size in gzip.GzipFile

Charles-François Natali report at bugs.python.org
Mon Apr 28 22:08:46 CEST 2014


Charles-François Natali added the comment:

That could make sense, dunno.

Note that the bz2 module uses a harcoded 8K value.

Note that the buffer size should probably be passed to the open() call.

Also, the allocation is quite peculiar: it uses an exponential buffer
size, starting at a tiny value:

202             # Starts small, scales exponentially
203             self.min_readsize = 100

In short, I think the overall buffering should be rewritten :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20962>
_______________________________________


More information about the Python-bugs-list mailing list