Message396809
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. |
|
Date |
User |
Action |
Args |
2021-07-01 06:54:55 | Thomas | set | recipients:
+ Thomas, eric.smith, serhiy.storchaka, malin, cuibonobo, kevinmehall |
2021-07-01 06:54:55 | Thomas | set | messageid: <1625122495.76.0.984588360182.issue42369@roundup.psfhosted.org> |
2021-07-01 06:54:55 | Thomas | link | issue42369 messages |
2021-07-01 06:54:55 | Thomas | create | |
|