Open schlegelp opened 7 years ago
Pool class from multiprocessing seems to be the better choice here (see https://docs.python.org/3.5/library/multiprocessing.html#multiprocessing.pool.Pool) as Threading only really improves performance for non-CPU-heavy tasks (parallelism).
Quick initial tests show 2-10fold increase in speed for e.g. reroot, pruning and clustering
Partially implemented with commit 46f933ce7f0e97738820efa37d79b5a144da4af2
Just copy paste code from
get_urls_threaded