MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/bun5px/dear_python2_user/ephyjne/?context=3
r/Python • u/koungmeng • May 30 '19
275 comments sorted by
View all comments
Show parent comments
13
Basic threading
You mean asyncio, I guess? It's not really "threading"...
13 u/mrrichardcranium May 30 '19 edited May 30 '19 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 😅 7 u/toyg May 30 '19 Ah, good point, I forgot concurrent.futures is 3-only... 5 u/mrrichardcranium May 30 '19 And god damn is it glorious!
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 😅
7 u/toyg May 30 '19 Ah, good point, I forgot concurrent.futures is 3-only... 5 u/mrrichardcranium May 30 '19 And god damn is it glorious!
7
Ah, good point, I forgot concurrent.futures is 3-only...
5 u/mrrichardcranium May 30 '19 And god damn is it glorious!
5
And god damn is it glorious!
13
u/toyg May 30 '19
You mean asyncio, I guess? It's not really "threading"...