Mercurial > prosody-hg
comparison util-src/poll.c @ 13335:8b3bf0d2ffd4
util.poll: Quadruple number of events retrieved at once from epoll
Better performance under load maybe?
See b890ceb1c24f for previous increase
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 21 Nov 2023 20:45:56 +0100 |
| parents | 649876680bf0 |
| children | 5fe8a8e16b27 |
comparison
equal
deleted
inserted
replaced
| 13334:aefcb6b4f47d | 13335:8b3bf0d2ffd4 |
|---|---|
| 24 | 24 |
| 25 #ifdef USE_EPOLL | 25 #ifdef USE_EPOLL |
| 26 #include <unistd.h> | 26 #include <unistd.h> |
| 27 #include <sys/epoll.h> | 27 #include <sys/epoll.h> |
| 28 #ifndef MAX_EVENTS | 28 #ifndef MAX_EVENTS |
| 29 #define MAX_EVENTS 64 | 29 #define MAX_EVENTS 256 |
| 30 #endif | 30 #endif |
| 31 #endif | 31 #endif |
| 32 #ifdef USE_POLL | 32 #ifdef USE_POLL |
| 33 #include <poll.h> | 33 #include <poll.h> |
| 34 #ifndef MAX_EVENTS | 34 #ifndef MAX_EVENTS |
