[issue18515] zipfile._ZipDecryptor generates wasteful crc32 table on import

Daniel Holth report at bugs.python.org
Sat Jul 20 19:36:06 CEST 2013


Daniel Holth added the comment:

It takes 706 microseconds.

On my machine 

%timeit import sys; del sys.modules['zipfile']; import zipfile "import
zipfile"

takes 2.51 ms without the patch and 1.7 ms with the patch.

On Sat, Jul 20, 2013, at 12:13 PM, Serhiy Storchaka wrote:
> 
> Serhiy Storchaka added the comment:
> 
> How much time take it?
> 
> ----------
> 
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue18515>
> _______________________________________

----------

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


More information about the Python-bugs-list mailing list