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 jpeel
Recipients jpeel
Date 2011-09-23.04:48:53
SpamBayes Score 4.85649e-06
Marked as misclassified No
Message-id <1316753335.88.0.48389267066.issue13031@psf.upfronthosting.co.za>
In-reply-to
Content
Attached small diff speeds up extracting a gzipped tarball on my machine using python 3.2 by 3-5%. It will probably be a larger percentage on machines that have faster hard drives (mine is 5400rpm).

Basically, the changes speed up calculating the checksums by only doing one slice rather than four and call struct.unpack twice rather than four times. We are able to use less unpack calls because 'x' means to skip a byte.
History
Date User Action Args
2011-09-23 04:48:56jpeelsetrecipients: + jpeel
2011-09-23 04:48:55jpeelsetmessageid: <1316753335.88.0.48389267066.issue13031@psf.upfronthosting.co.za>
2011-09-23 04:48:55jpeellinkissue13031 messages
2011-09-23 04:48:54jpeelcreate