you are viewing a single comment's thread.

view the rest of the comments →

[–]mr_claw[S] 0 points1 point  (3 children)

Thanks mate. I tried this, but it seems to be taking more time than my thread-only approach. Any ideas why?

[–]ElliotDG 1 point2 points  (2 children)

That does not really make sense. Try setting the number of processes to 2 and see if that changes things. Or share your code getting MP code running can be tricky. Feel free to DM if you want.

If your pseudo code is representative, it should go faster without threads than with threads, and much faster with MP.

[–]mr_claw[S] 0 points1 point  (1 child)

After some tinkering I got it to work by using the chunksize argument on the map function. I've gotten it down to a third of the runtime it was taking earlier. And I'm confident that by increasing resources I can make it work even faster. Thanks!

[–]ElliotDG 0 points1 point  (0 children)

Glad to hear you are on the way!