Message163408
well, I'm thinking for example about threading.Condition, where Lock objects are being created and erased willy nilly.
Also, locks are normally uncontested. The unconstested case is the one to optimize for. As such, the test cases are not artificial at all.
The implementers of RLock in _threadingmodule obviously thought this was important, I'm merely bringing that same benefit to the Lock object. |
|
Date |
User |
Action |
Args |
2012-06-22 13:56:57 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, pitrou, sbt |
2012-06-22 13:56:57 | kristjan.jonsson | set | messageid: <1340373417.12.0.856957491986.issue15124@psf.upfronthosting.co.za> |
2012-06-22 13:56:56 | kristjan.jonsson | link | issue15124 messages |
2012-06-22 13:56:56 | kristjan.jonsson | create | |
|