[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-06-16 Thread Rick Harris
Rick Harris added the comment: Are compatibility concerns the main reason this patch has yet to be applied? If so, could we allay those fears by keeping the default seek-y behavior and only introducing the new seek-less style when a 'noseek' flag is passed? -- nosy: +rharris

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-06-17 Thread Florian Festi
Florian Festi added the comment: There are no compatibility concerns I am aware of. The new implementation does no longer need a seek()able file. Of course an implemented seek() method won't hurt anyone. The additional tests are only there to point out the problems of the old implementation.

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-06-17 Thread Nils Philippsen
Changes by Nils Philippsen : -- nosy: +nils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch could only be applied to 3.2 (2.7 is frozen now). But the gzip code has changed quite a bit and I would advocate creating a new patch if you are interested. Do notice that performance should also be much better in 3.2, and it is possible to wrap a g

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-16 Thread Mark Lawrence
Mark Lawrence added the comment: As there has been a lot of support for the attached patch what is needed to take this forward? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As there has been a lot of support for the attached patch what is > needed to take this forward? Read my 2010-06-17 message above. Someone needs to update the patch for 3.2, and preferable show that it still brings an improvement (small micro-benchmarks are

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-18 Thread Florian Festi
Florian Festi added the comment: I updated the performace script to Py3. You still need to change the import gzipnew line to actually load the modified module. Right now it just compares the stdlib gzip module to itself. -- Added file: http://bugs.python.org/file18916/test_gzip2-py3.p

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-18 Thread Florian Festi
Florian Festi added the comment: Attached result of a run with stdlib gzip module only. Results indicate that performance still is as bad as on Python 2. The Python 3 gzip module also still makes use of tell() ans seek(). So both argument for including this patch are still valid. Porting the

[issue1675951] [gzip] Performance for small reads and fix seek problem

2009-12-22 Thread Karl D'Adamo
Karl D'Adamo added the comment: This patch is awesome. It makes it possible to do this with http response objects that return gzipped streams: >>> conn = httplib.HTTPConnection('blah') >>> req = conn.request('GET', 'a.gz') >>> resp = conn.getresponse() >>> unzipper = gzip.GzipFile(fileobj=resp

[issue1675951] [gzip] Performance for small reads and fix seek problem

2009-01-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth