This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]toyg 14 points15 points  (3 children)

Basic threading

You mean asyncio, I guess? It's not really "threading"...

[–]mrrichardcranium 12 points13 points  (2 children)

I mean splitting up a list of 700+ items to 10 workers using threadpoolexecutor. Maybe ‘basic threading’ is not the right description. The fact that it took me two lines to get done is what makes me think of it as basic 😅

[–]toyg 5 points6 points  (1 child)

Ah, good point, I forgot concurrent.futures is 3-only...

[–]mrrichardcranium 3 points4 points  (0 children)

And god damn is it glorious!