exB: stop setting the number of threads
This commit is contained in:
		
							parent
							
								
									c03778ca2f
								
							
						
					
					
						commit
						7f604f0a77
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -19,7 +19,7 @@ def main(arg): | ||||||
|                 errors = pool.map(compute_error, ns) |                 errors = pool.map(compute_error, ns) | ||||||
|         case 'mt': |         case 'mt': | ||||||
|             from multiprocessing.pool import ThreadPool |             from multiprocessing.pool import ThreadPool | ||||||
|             with ThreadPool(10) as pool: |             with ThreadPool() as pool: | ||||||
|                 errors = pool.map(compute_error, ns) |                 errors = pool.map(compute_error, ns) | ||||||
| 
 | 
 | ||||||
|     for n, e in zip(ns, errors): |     for n, e in zip(ns, errors): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue