3 Nov
2015
3 Nov
'15
7:06 a.m.
On 3 Nov 2015, at 00:19, Alexander V. Chernikov <melifaro@yandex-team.ru> wrote:
Not sure if bird needs os-dependent stuff like eventports/epoll/kqueue variant and own libev[ent], but having poll() as compile-time option might also be an option. (Not insisting on anything, select() is fine for our workload, just discussing).
I'm not sure you need to go as far as libevent. poll / ppoll are widely supported and avoid a linear scan of an array of 1024+ items. It's also relatively easy to put in a wrapper to make select() work like *poll() on systems that don't support it. -- Alex Bligh