[issue7471] GZipFile.readline too slow
Nir Aides
report at bugs.python.org
Wed Dec 16 14:02:43 CET 2009
Nir Aides <nir at winpdb.org> added the comment:
Right, using the io module makes GzipFile as fast as zcat.
I submit a new patch this time for Python 2.7, however, it is not a
module rewrite, but again minimal refactoring.
GzipFile is now derived of io.BufferedRandom, and as result the
functionality of GzipFile changed since it used to behave differently
than io classes. For example write() did not return number of bytes
written, etc... Also, I hacked it a little to make it work with a raw
stream which is either readable or writable but not both. If it is
unacceptable, or if you prefer a module rewrite, I don't mind discussing
and evolving this further.
----------
Added file: http://bugs.python.org/file15575/gzip_7471_io_patch.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7471>
_______________________________________
More information about the Python-bugs-list
mailing list