[New-bugs-announce] [issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs
Justin Peel
report at bugs.python.org
Fri Sep 23 06:48:55 CEST 2011
New submission from Justin Peel <peelpy at gmail.com>:
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.
----------
components: Library (Lib)
files: cpython_tarfile.diff
keywords: patch
messages: 144436
nosy: jpeel
priority: normal
severity: normal
status: open
title: [PATCH] small speed-up for tarfile.py when unzipping tarballs
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file23229/cpython_tarfile.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13031>
_______________________________________
More information about the New-bugs-announce
mailing list