Serhiy Storchaka added the comment:

In principle this is the right approach. But the time of enter() is increased 
by 20%. Here is updated and slightly optimized patch that restores enter() 
performance (but a little slow down cancel()). Because enter() is executed for 
each event and cancel() is not, and enter's gain greater cancel's loss, I think 
it is a very profitable exchange.

----------
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file27489/cancel_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13451>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to