2 ms·
Message passing via serialization / copy is inherently more expensive just passing a reference between threads. So any benefit vs threaded Python depends on th
by loeg 8y ago
Message passing via serialization / copy is inherently more expensive just passing a reference between threads. So any benefit vs threaded Python depends on the ratio of IPC to actual Python bytecodes interpreted.
IPC-heavy programs with low concurrency may suffer worse under this model than threaded with traditional single GIL. As threads approach infinity, though, anything that scales beats the single GIL model.