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 serhiy.storchaka
Recipients giampaolo.rodola, josiah.carlson, josiahcarlson, pitrou, rhettinger, serhiy.storchaka, stutzbach
Date 2013-10-15.21:37:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381873066.85.0.807501392867.issue13451@psf.upfronthosting.co.za>
In-reply-to
Content
> it wasn't clear to me *where* exactly the enter() speedup was introduced

Constructing Event object. You introduced __init__().

Here is a patch which is based on my patch and new Giampaolo's patch. In additional it fixes a performance for the queue property (perhaps regression was introduced in issue18432).

Unpatched:

test_cancel                    : time=4.05863 : calls=1 : stdev=0.00000
test_empty                     : time=0.00499 : calls=1 : stdev=0.00000
test_enter                     : time=0.03537 : calls=1 : stdev=0.00000
test_queue                     : time=37.82003 : calls=1 : stdev=0.00000
test_run                       : time=0.05289 : calls=1 : stdev=0.00000

cancel3.patch:

test_cancel                    : time=0.00649 : calls=1 : stdev=0.00000
test_empty                     : time=0.00704 : calls=1 : stdev=0.00000
test_enter                     : time=0.03959 : calls=1 : stdev=0.00000
test_queue                     : time=45.34278 : calls=1 : stdev=0.00000
test_run                       : time=0.05477 : calls=1 : stdev=0.00000

cancel_4.patch:

test_cancel                    : time=0.00889 : calls=1 : stdev=0.00000
test_empty                     : time=0.00636 : calls=1 : stdev=0.00000
test_enter                     : time=0.03092 : calls=1 : stdev=0.00000
test_queue                     : time=3.93284 : calls=1 : stdev=0.00000
test_run                       : time=0.05294 : calls=1 : stdev=0.00000
History
Date User Action Args
2013-10-15 21:37:46serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, josiahcarlson, pitrou, giampaolo.rodola, josiah.carlson, stutzbach
2013-10-15 21:37:46serhiy.storchakasetmessageid: <1381873066.85.0.807501392867.issue13451@psf.upfronthosting.co.za>
2013-10-15 21:37:46serhiy.storchakalinkissue13451 messages
2013-10-15 21:37:46serhiy.storchakacreate