[issue26233] select.epoll.poll() should away calling malloc() each time

2016-01-28 Thread STINNER Victor
STINNER Victor added the comment: > Overallocating by 50% might be overkill here; I wouldn't imagine most users > of epoll.poll would use anything but: (...) See my second message: "My patch also overallocates the buffer by 50% to avoid calling realloc() to many times. Using the selectors modu

[issue26233] select.epoll.poll() should away calling malloc() each time

2016-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Overallocating by 50% might be overkill here; I wouldn't imagine most users of epoll.poll would use anything but: 1. Limit to 1 event 2. Limit to some constant K events 3. Use default maxevents (FD_SETSIZE - 1) Even if called in pathological order, that would