This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nirai
Recipients asnakelover, brian.curtin, jackdied, nirai, pitrou
Date 2009-12-17.22:23:32
SpamBayes Score 0.000110302
Marked as misclassified No
Message-id <>
How about using the first patch with the slicing optimization and 
additionally enhancing GzipFile with the methods required to make it 
play nice as a raw stream to an io.BufferedReader object (readable(), 
writable(), readinto(), etc...).

This way we still get the 350% speed up and keep it fully backward 
compatible, and if someone needs the extra performance they can feed it 
into an io.BufferedReader object thus:

g = gzip.GzipFile(...)
r = io.BufferedReader(g)
for line in r:
Date User Action Args
2009-12-17 22:23:35niraisetrecipients: + nirai, pitrou, jackdied, brian.curtin, asnakelover
2009-12-17 22:23:34niraisetmessageid: <>
2009-12-17 22:23:33nirailinkissue7471 messages
2009-12-17 22:23:32niraicreate