New submission from Giampaolo Rodola': 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 ---------- files: selectors_modify.diff keywords: patch messages: 291261 nosy: giampaolo.rodola priority: normal severity: normal status: open title: Speedup DefaultSelectors.modify() by 2x Added file: http://bugs.python.org/file46787/selectors_modify.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30014> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com