[Python-ideas] Ideas towards GIL removal

Aahz aahz at pythoncraft.com
Mon May 21 06:24:57 CEST 2007


On Mon, Apr 16, 2007, Greg Ewing wrote:
> Brett Cannon wrote:
>>
>> And I know some people love the (mostly) instantaneous garbage
>> collection when the refcount should be at 0.
>
> Yeah, and even a 6 millisecond pause could be too long in some
> applications, such as high frame rate animation.  6 milliseconds is a
> *long* time for today's GHz processors.

Hrm.  Assuming that really is the maximum, I don't think it's an issue
for Python applications: 6ms slices still allow for >150 frames/sec.  If
overall object creation/destruction throughput is increased or this
allows greater throughput on multi-core machines without dramatically
decreasing performance for single-CPU machines, it may well be
worthwhile.

But my primary concern remains the issue of Python being a glue language
with external libraries: the GIL is one of our best weapons for making
it easy.  This approach seems like it would be easier to integrate than
other options I've seen.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Look, it's your affair if you want to play with five people, but don't
go calling it doubles."  --John Cleese anticipates Usenet



More information about the Python-ideas mailing list