[issue13451] sched.py: speedup cancel() method

Giampaolo Rodola' report at bugs.python.org
Tue Nov 22 10:03:43 CET 2011


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

In attachment. 

Before the patch:
9.433167934417725

After the patch:
0.0016150474548339844

scheduler.queue and scheduler.empty should be modified in accordance (which I haven't done, it's just to give you an idea).

----------
Added file: http://bugs.python.org/file23753/cancel-later-approach.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13451>
_______________________________________


More information about the Python-bugs-list mailing list