[New-bugs-announce] [issue26233] select.epoll.wait() should away calling malloc() each time

STINNER Victor report at bugs.python.org
Thu Jan 28 10:11:45 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26233>
_______________________________________


More information about the New-bugs-announce mailing list