3 ms·
> It would be easier to get it in multithreading with an arena based allocation model where objects live in a shared or non-shared area of memory. That still r
by usrbinbash 3y ago
> It would be easier to get it in multithreading with an arena based allocation model where objects live in a shared or non-shared area of memory.
That still relies on IPC, and the associated kernel overhead to set, ctl and access the shared memory, IN ADDITION to the kernel overhead of having to do a context switch between processes.
Threads only rely on the context switch.
> I am just advocating it as the better model for Python to advance to
https://discuss.python.org/t/poll-feedback-to-the-sc-on-making-cpython-free-threaded-and-pep-703/28540 https://discuss.python.org/t/poll-feedback-to-the-sc-on-maki...
- miraculixx 3y ago> That still relies on IPC, and the associated kernel overhead to set, ctl and access the shared memory, IN ADDITION to the kernel overhead of having to do a context switch between processes. In multithreading there is no need for a context switch. Also memory is automatically shared by all threads. The arena model can be completely managed by Python. I don't get why the SC has not chosen this. Well, I do get it, but it don't like what it implies.