This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients lightstruk, pitrou
Date 2010-09-05.12:48:58
SpamBayes Score 6.8576933e-06
Marked as misclassified No
Message-id <1283690942.56.0.905412739576.issue3978@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-09-05 12:49:02pitrousetrecipients: + pitrou, lightstruk
2010-09-05 12:49:02pitrousetmessageid: <1283690942.56.0.905412739576.issue3978@psf.upfronthosting.co.za>
2010-09-05 12:48:59pitroulinkissue3978 messages
2010-09-05 12:48:58pitroucreate