[issue19336] No API to get events from epoll without allocating a list

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue19336] No API to get events from epoll without allocating a list

2013-11-17 Thread Christian Heimes
Christian Heimes added the comment: @Alex: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Charles-François Natali
Charles-François Natali added the comment: I'm also skeptical: I doubt the list allocation weights much compared to the syscall. And like Christian, I'm curious to know which implementation you'd chose. -- ___ Python tracker

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Christian Heimes
Christian Heimes added the comment: How is iterpoll() suppose to work? Do epoll_wait() with maxevents=1 in a loop, yield (fd, event) tuples and stop/block on no events? -- components: +Extension Modules type: -> enhancement versions: +Python 3.4 ___

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: A list of a couple events should be very cheap to allocate. How many events do you get? -- nosy: +pitrou ___ Python tracker ___ ___

[issue19336] No API to get events from epoll without allocating a list

2013-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19336] No API to get events from epoll without allocating a list

2013-10-21 Thread Maciej Fijalkowski
Changes by Maciej Fijalkowski : -- nosy: +fijall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19336] No API to get events from epoll without allocating a list

2013-10-21 Thread Alex Gaynor
New submission from Alex Gaynor: select.epoll should expose an api such as `iterpoll` which returns an iterator over the ready events, rather than a list. Allocating a list is wasteful in many cases (e.g. twisted's event loop) and it'd be nice to have an API that was less wasteful. --