Overcoming python performance penalty for multicore CPU

Terry Reedy tjreedy at udel.edu
Wed Feb 3 01:33:20 EST 2010


On 2/2/2010 9:02 PM, alex23 wrote:
> On Feb 3, 9:02 am, John Nagle<na... at animats.com>  wrote:
>>      I know there's a performance penalty for running Python on a
>> multicore CPU, but how bad is it?  I've read the key paper
>> ("www.dabeaz.com/python/GIL.pdf"), of course.
>
> It's a shame that Python 3.x is dead to you, otherwise you'd be able
> to enjoy the new GIL implementation in 3.2: http://www.dabeaz.com/python/NewGIL.pdf
>
> Actually, it looks like you probably still can:
>   + patch for 2.5.4: http://thread.gmane.org/gmane.comp.python.devel/109929
>   + patch for 2.7? http://bugs.python.org/issue7753

The patch was rejected for 2.7 (and earlier) because it could break code 
as explained in the discussion. One would have to apply and compile 
their own binary.




More information about the Python-list mailing list