Nir Aides <n...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7471> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com