Re:Python stands to lose its GIL, and gain a lot of speed
by SkittyDog on Sunday October 17, 2021 @12:27PM
(#28897593)
Actual work is left as an exercise for the reader ;-)
[ Parent
| on HN ]
Re:Python stands to lose its GIL, and gain a lot of speed
by lazide on Sunday October 17, 2021 @12:46PM
(#28897746)
Last I did this, when the processes were fork()‘s of the parent (the typical way this was done), memory overhead was minimal compared to threads.
A couple %. That was somewhat workload dependent however, if there is a lot of memory churn or data marshaling/unmarshalling happening as part of the workload, they’ll quickly diverge and you’ll burn a ton of CPU doing so.
Typical ways around that include mmap’ng things or various types of shared memory IPC, but that is a lot of work.