[Python-Dev] Removing the GIL (Me, not you!) (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Sep 12 09:32:13 CEST 2007


Sure - but those things don't get modified that often, except for their reference count. The reference count is the killer, though -- you have to lock the object even to do that. And it happens a LOT, to all objects, including immutable ones.

Now we are getting into details: you do NOT have to lock an object to modify its reference count. An atomic increment/decrement operation is enough.

Regards, Martin



More information about the Python-Dev mailing list