"Brendan Miller" <catph...@catphive.net> writes: > That's interesting, I hadn't heard the reference counting mechanism > was related to the GIL. Is it just that you need to lock the reference > count before mutating it if there's no GIL?
Yes. Someone tried inserting such a lock but it slowed down the single-cpu case unacceptably. > Really, that shouldn't be > the case. Reference counting can be done with a lock free algorithm. That's interesting, got a reference? (no pun intended) -- http://mail.python.org/mailman/listinfo/python-list