[issue10030] Patch for zip decryption speedup

Serhiy Storchaka report at bugs.python.org
Sun Nov 4 17:00:58 CET 2012


Serhiy Storchaka added the comment:

Here is a patch which optimize (speed up 2x) Python implementation of ZIP decryptor.  It is almost the maximum of what can be achieved without significant degradation of maintainability.

Of course, 2x is less then 100x, but it more portable and costs almost nothing.  If that's not enough, I suggest to use an external unzip. You can even run multiple unzips at a time for the parallel extraction of multiple files.

If in the future someone will implement the strong encryption for ZIP files, it is possible it will required a C accelerator module and it is possible there will be a place for PKWARE's traditional encryption.

----------
Added file: http://bugs.python.org/file27882/zipfile_decryptor_speedup.patch

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


More information about the Python-bugs-list mailing list