Antoine Pitrou added the comment:

I think a lock is still needed for cache misses. The dict operations (set and 
del) can release the GIL (as well as course as the PyObject_Call()), therefore 
you might end up with duplicate list links for a given key.

(and given cache misses are supposed to be much more expensive anyway, I don't 
think acquiring a lock there is detrimental)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14373>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to