Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Libev on Windows

Considering libevent vs. libev. Does the libev library have native support of IOCP on Windows?

like image 639
Cartesius00 Avatar asked Nov 07 '11 21:11

Cartesius00


3 Answers

both libev and libevent use select on windows to detect and dispatch events (the event core doesn't do I/O, only events).

libevent in addition has a socket handle abstraction, which uses iocps on windows to do reads and writes. libev doesn't have anything comparable. the benchmarks seen so far indicate that the iocp backend of libevent is not very fast though, so if you are looking for fast on windows, you better do your own I/O at this point.

like image 199
Remember Monica Avatar answered Nov 07 '22 08:11

Remember Monica


Take a look at libuv, yet another implementation of event loop. It supports IOCP and other backends.

This is robust because used by Node.JS.

like image 26
Akzhan Abdulin Avatar answered Nov 07 '22 09:11

Akzhan Abdulin


No, it uses select() , just as libevent does.

like image 3
nos Avatar answered Nov 07 '22 08:11

nos