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 benjamin.peterson
Recipients benjamin.peterson
Date 2009-05-24.23:52:26
SpamBayes Score 0.0043761623
Marked as misclassified No
Message-id <1243209148.52.0.196068499624.issue6101@psf.upfronthosting.co.za>
In-reply-to
Content
Performance numbers:

With patch:

$ ./python.exe -m timeit -s 'import thread; l = thread.allocate_lock()'
'with l: pass'
1000000 loops, best of 3: 1.99 usec per loop

Without:
100000 loops, best of 3: 2.15 usec per loop
History
Date User Action Args
2009-05-24 23:52:28benjamin.petersonsetrecipients: + benjamin.peterson
2009-05-24 23:52:28benjamin.petersonsetmessageid: <1243209148.52.0.196068499624.issue6101@psf.upfronthosting.co.za>
2009-05-24 23:52:27benjamin.petersonlinkissue6101 messages
2009-05-24 23:52:26benjamin.petersoncreate