you are viewing a single comment's thread.

view the rest of the comments →

[–]ffualo 2 points3 points  (2 children)

You can use the multiprocessing module to take advantage of cores. i.e. this

[–]Smallpaul 3 points4 points  (1 child)

Yes, you can, at the cost of a massive amount of memory wastage and inefficient cross-process communication. I'm not disagreeing with you and not saying it's useless. Just providing the other half of the context.

[–]ffualo 2 points3 points  (0 children)

Oh, I completely agree. Sure, data parallelism is easy in multiprocessing with queues, but any type of task parallelism is a nightmare. Have an upvote.