Comparison

util-src/poll.c @ 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
parent 9448:352e8b75c1ae
child 9475:9b26a50cdfe3
comparison
equal deleted inserted replaced
9449:94033a2529b9 9450:b890ceb1c24f
17 #endif 17 #endif
18 18
19 #ifdef USE_EPOLL 19 #ifdef USE_EPOLL
20 #include <sys/epoll.h> 20 #include <sys/epoll.h>
21 #ifndef MAX_EVENTS 21 #ifndef MAX_EVENTS
22 #define MAX_EVENTS 10 22 #define MAX_EVENTS 64
23 #endif 23 #endif
24 #else 24 #else
25 #include <sys/select.h> 25 #include <sys/select.h>
26 #endif 26 #endif
27 27