[New-bugs-announce] [issue18515] zipfile._ZipDecryptor generates wasteful crc32 table on import

Daniel Holth report at bugs.python.org
Sat Jul 20 16:37:24 CEST 2013


New submission from Daniel Holth:

http://hg.python.org/cpython/file/e7305517260b/Lib/zipfile.py#l460

I noticed this table taking up time on import. I'd guess that it pre-dates zlib.crc32 which is imported at the top of the file. I also suspect that most of the time this table isn't even used at all.

----------
files: zipfile-no-crc32.patch
keywords: patch
messages: 193408
nosy: dholth
priority: normal
severity: normal
status: open
title: zipfile._ZipDecryptor generates wasteful crc32 table on import
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30990/zipfile-no-crc32.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18515>
_______________________________________


More information about the New-bugs-announce mailing list