4 ms·
Asycio is really a list of tasks in the main interpreter thread. This is far easier to work with than multiprocessing. When doing, e.g. AWS work, multiprocess
by smitty1e 4y ago
Asycio is really a list of tasks in the main interpreter thread.
This is far easier to work with than multiprocessing.
When doing, e.g. AWS work, multiprocessing is additional pain for little gain.
Maybe 3.11 will make threads less painful.
- heavyset_go 4y agoFrom what I've been following, it's going to take another release (or several) after 3.11 for Node-like worker threads to land in Python.
- smitty1e 4y agoI'm not deep on Node, but this sounds like a GIL thing.
- heavyset_go 4y agoIt is, and it's a subinterpreters thing. Node has separate interpreters that run in worker threads but also share memory, which is the route Python is planning on taking.