Thomas <thger...@hhu.de> added the comment:

The monkey patch works for me! Thank you very much! (I have only tested 
reading, not writing).

However, the lock contention of Python's ZipFile is so bad that using multiple 
threads actually makes the code run _slower_ than single threaded code when 
reading a zip file with many small files. For this reason, I am not using 
ZipFile any longer. Instead, I have implemented a subset of the zip spec 
without locks, which gives me a speedup of over 2500 % for reading many small 
files compared to ZipFile.

I think that the architecture of ZipFile should be reconsidered, but this 
exceeds the scope of this issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42369>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to