Message96538
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:35 | nirai | set | recipients:
+ nirai, pitrou, jackdied, brian.curtin, asnakelover |
2009-12-17 22:23:34 | nirai | set | messageid: <1261088614.89.0.825931852555.issue7471@psf.upfronthosting.co.za> |
2009-12-17 22:23:33 | nirai | link | issue7471 messages |
2009-12-17 22:23:32 | nirai | create | |
|