[issue1675951] Performance for small reads and fix seek problem

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much! I have kept the second approach (use PaddedFile at all times), since it is more regular and minimizes the probability for borderline cases. As for the supposed performance slowdown, it doesn't seem significant. On large blocks of data, I

[issue1675951] Performance for small reads and fix seek problem

2010-09-22 Thread Florian Festi
Changes by Florian Festi : Added file: http://bugs.python.org/file18965/0002-Avoid-the-need-of-seek-ing-on-the-file-read-2.patch ___ Python tracker ___ ___

[issue1675951] Performance for small reads and fix seek problem

2010-09-22 Thread Florian Festi
Florian Festi added the comment: Stupid me! I ran the tests against my systems gzip version (Py 3.1). The performance issue is basically fixed by rev 77289. Performance is even a bit better that my original patch by may be 10-20%. The only test case where it performs worse is Random 1048576

[issue1675951] Performance for small reads and fix seek problem

2010-09-18 Thread Antoine Pitrou
Antoine Pitrou 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. Perfo