[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

Antoine Pitrou report at bugs.python.org
Fri Jun 22 16:16:46 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Also, locks are normally uncontested.  The unconstested case is the
> one to optimize for. As such, the test cases are not artificial at
> all.

Ok. I don't have any problem with the patch in principle (I didn't read
it in detail). I was just a bit surprised that you cared so much about
performance of lock allocation.

If you want the patch to go in 3.3, you will have to commit it before
the beta release, which is very soon (this week-end I think).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15124>
_______________________________________


More information about the Python-bugs-list mailing list