[Python-ideas] solving multi-core Python

Sturla Molden sturla.molden at gmail.com
Tue Jun 23 16:55:31 CEST 2015


On 23/06/15 15:14, Jonas Wielicki wrote:

> To be fair, you will nevertheless get a slowdown when copy-on-write
> kicks in while first using whatever was cloned from the parent. This is
> nothing which blocks execution, but slows down execution.

Yes, particularly because of reference counts. Unfortunately Python 
stores refcounts within the PyObject struct. And when a refcount is 
updated a copy of the entire 4 KB page is triggered. There would be fare 
less of this if refcounts was kept in dedicated pages.



Sturla



More information about the Python-ideas mailing list