3 ms·
I think for most people, async io / coroutines gets them most of the benefit that they'd ever get out of multi-threading. With async io, you can have a lot goi
by war1025 8y ago
I think for most people, async io / coroutines gets them most of the benefit that they'd ever get out of multi-threading.
With async io, you can have a lot going on at once, interleaving nicely while different tasks wait for io responses.
Beyond that, normally you're just as well off to kick off a second process.
You have to get pretty fancy with algorithms to make multi-threaded computation a net-benefit. Most of the time you don't need that. If you do, you're probably not reaching for python.