Giampaolo Rodola' added the comment: Attached is a patch (for epoll only) which updates the SelectorKey. This introduces a considerable slowdown compared to my first patch:
no patch: 16.2 usec per loop your patch: 12.4 usec per loop my patch: 10.9 usec per loop first patch: 3.07 usec per loop The culprit is the new nameduple's _replace() call. It's a shame a single line adds such a great slowdown. I think it makes sense to investigate whether we can introduce a faster replace mechanism for namedtuple. ---------- nosy: +rhettinger Added file: http://bugs.python.org/file38152/epoll.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18932> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com