This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients kristjan.jonsson, pitrou, sbt
Date 2012-06-22.13:35:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340372141.68.0.0122402655159.issue15124@psf.upfronthosting.co.za>
In-reply-to
Content
64-bit Linux:

./python -m timeit -s "from _thread import allocate_lock" "allocate_lock()"
-> before: 0.0712 usec per loop
-> after: 0.0556 usec per loop

./python -m timeit -s "from _thread import allocate_lock;l=allocate_lock()" "l.acquire();l.release()"
-> before: 0.177 usec per loop
-> after: 0.168 usec per loop

So there's a small improvement on artificial benchmarks.
History
Date User Action Args
2012-06-22 13:35:41pitrousetrecipients: + pitrou, kristjan.jonsson, sbt
2012-06-22 13:35:41pitrousetmessageid: <1340372141.68.0.0122402655159.issue15124@psf.upfronthosting.co.za>
2012-06-22 13:35:41pitroulinkissue15124 messages
2012-06-22 13:35:40pitroucreate