[issue3978] ZipFileExt.read() can be incredibly slow; patch included
Antoine Pitrou
report at bugs.python.org
Sun Sep 5 14:49:02 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
The patch has been outdated by other independent performance work on the zipfile module. In Python 3.2, the zipfile module is actually slightly faster than the "unzip" program:
- first with the supplied "zeroes.zip" file:
$ rm -f zeroes && time -p unzip -e zeroes.zip
Archive: zeroes.zip
inflating: zeroes
real 0.56
user 0.50
sys 0.06
$ time -p ./python -m zipfile -e zeroes.zip .
real 0.45
user 0.34
sys 0.10
- Then with a 100MB random file:
$ rm -f random && time -p unzip -e random.zip
Archive: random.zip
inflating: random
real 0.69
user 0.61
sys 0.07
$ rm -f random && time -p ./python -m zipfile -e random.zip .
real 0.33
user 0.18
sys 0.14
----------
resolution: -> out of date
status: open -> closed
versions: +Python 3.2 -Python 2.7, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3978>
_______________________________________
More information about the Python-bugs-list
mailing list