[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
- Previous message: [Python-Dev] Removing the GIL (Me, not you!)
- Next message: [Python-Dev] Removing the GIL (Me, not you!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Removing the GIL (Me, not you!)
- Next message: [Python-Dev] Removing the GIL (Me, not you!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]