How much faster could your Python code run (if you used 100s of thread workers)? The ThreadPoolExecutor class provides modern thread pools for IO-bound tasks. This is not some random third-party ...
ThreadPool.imap (also imap_unsorted) consumes vast amounts of memory unnecessarily, degrading performance of systems that use it without this helping in the performance of imap. Where used to process ...