New submission from STINNER Victor: My colleague Fabio M. Di Nitto noticed that the memory allocation on the heap (PyMem_Malloc()) in select.epoll.wait() can have an impact on performance when select.epoll.wait() is a busy applicatin.
He proposed attached patch to allocate memory on the stack for up to FD_SETSIZE-1 events: see attached patch. ---------- components: Library (Lib) files: epoll_stack.patch keywords: patch messages: 259141 nosy: haypo, serhiy.storchaka, yselivanov priority: normal severity: normal status: open title: select.epoll.wait() should away calling malloc() each time type: performance versions: Python 3.6 Added file: http://bugs.python.org/file41743/epoll_stack.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26233> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com