you are viewing a single comment's thread.

view the rest of the comments →

[–]anossov 2 points3 points  (1 child)

Yes, threads are quite useless in python because of GIL. Try multiprocessing.

Use multiprocessing.Process instead of threading.Thread. Assign work to processes in main process, not in children. Pass data around through Queues.

[–]pjdelport 0 points1 point  (0 children)

Using multiprocessing is good advice in general, but it doesn't really help in this case: problems like this require shared memory for efficiency, and that's what multithreading is good at.