[issue20962] Rather modest chunk size in gzip.GzipFile

Antoine Pitrou report at bugs.python.org
Mon Apr 28 20:22:01 CEST 2014


Antoine Pitrou added the comment:

> So I'd suggest, instead of using an hardcoded value, to simply reuse io.DEFAULT_BUFFER_SIZE.
> That way, if some day we decide to change it, all user code wil benefit from the change.

I don't think io.DEFAULT_BUFFER_SIZE makes much sense as a heuristic for the gzip module (or compressed files in general). Perhaps gzip should get its own DEFAULT_BUFFER_SIZE?

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list