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 <1261088614.89.0.825931852555.issue7471@psf.upfronthosting.co.za>
In-reply-to
Content
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:
    ...
History
Date User Action Args
2009-12-17 22:23:35niraisetrecipients: + nirai, pitrou, jackdied, brian.curtin, asnakelover
2009-12-17 22:23:34niraisetmessageid: <1261088614.89.0.825931852555.issue7471@psf.upfronthosting.co.za>
2009-12-17 22:23:33nirailinkissue7471 messages
2009-12-17 22:23:32niraicreate