在决定从concurrent.futures中的ThreadPoolExecutor设置max_workers时需要考虑哪些因素?
只要您可以预期Python 3.5+可用,是否有任何理由不将max_workers设置为None,这将使其“默认为机器上处理器的数量乘以5”,如此处所述? https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor
在决定从concurrent.futures中的ThreadPoolExecutor设置max_workers时需要考虑哪些因素?
只要您可以预期Python 3.5+可用,是否有任何理由不将max_workers设置为None,这将使其“默认为机器上处理器的数量乘以5”,如此处所述? https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor