Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2017-04-07.10:40:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491561607.45.0.330964035773.issue30014@psf.upfronthosting.co.za>
In-reply-to
Content
Patch in attachment modifies DefaultSelector.modify() so that it uses the underlying selector's modify() method instead of unregister() and register() resulting in a 2x speedup.

Without patch:
~/svn/cpython {master}$ ./python bench.py 
0.006010770797729492

With patch:
~/svn/cpython {master}$ ./python bench.py 
0.00330352783203125
History
Date User Action Args
2017-04-07 10:40:07giampaolo.rodolasetrecipients: + giampaolo.rodola
2017-04-07 10:40:07giampaolo.rodolasetmessageid: <1491561607.45.0.330964035773.issue30014@psf.upfronthosting.co.za>
2017-04-07 10:40:07giampaolo.rodolalinkissue30014 messages
2017-04-07 10:40:07giampaolo.rodolacreate