Changeset

9450:b890ceb1c24f

util.poll: Increase max epoll events per call This makes the struct roughly the same size in both epoll and select mode (64bit). There doesn’t seem to be much guidance on an appropriate size, it does not seem to matter too much since if there are more events they will simply show up in the next epoll_wait call. The number of exactly concurrent events should be fairly low most of the time anyways.
author Kim Alvefur <zash@zash.se>
date Mon, 08 Oct 2018 15:33:15 +0200
parents 9449:94033a2529b9
children 9451:db82b096b842
files util-src/poll.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/poll.c	Mon Oct 08 15:03:26 2018 +0200
+++ b/util-src/poll.c	Mon Oct 08 15:33:15 2018 +0200
@@ -19,7 +19,7 @@
 #ifdef USE_EPOLL
 #include <sys/epoll.h>
 #ifndef MAX_EVENTS
-#define MAX_EVENTS 10
+#define MAX_EVENTS 64
 #endif
 #else
 #include <sys/select.h>