[issue20962] Rather modest chunk size in gzip.GzipFile

William Tisäter report at bugs.python.org
Mon Apr 28 15:20:45 CEST 2014


William Tisäter added the comment:

That makes sense.

I proceeded and updated `Lib/gzip.py` to use `io.DEFAULT_BUFFER_SIZE` instead. This will change the existing behaviour in two ways:

* Start using 1024 * 8 as buffer size instead of 1024.

* Add one more kwarg (`buffer_size`) to `GzipFile.__init__()`.

Ps. This is my first patch, tell me if I'm missing something.

----------
Added file: http://bugs.python.org/file35074/20962_default-buffer-size.patch

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


More information about the Python-bugs-list mailing list