79086147

Date: 2024-10-14 12:30:58
Score: 1
Natty:
Report link

ThreadPoolExecutor is the problem as access to the identical objects is locked by the GIL. Substituting with ProcessPoolExecutor unlocks the situation. Speedup is obtained albeit at the cost of memory overhead linked to passing max_workers times the dataset.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Oliver Henriot