exB: stop setting the number of threads

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-08-30 15:55:12 +03:00
parent c03778ca2f
commit 7f604f0a77

View file

@ -19,7 +19,7 @@ def main(arg):
errors = pool.map(compute_error, ns)
case 'mt':
from multiprocessing.pool import ThreadPool
with ThreadPool(10) as pool:
with ThreadPool() as pool:
errors = pool.map(compute_error, ns)
for n, e in zip(ns, errors):