Windows 上的 Libev
考虑 libevent
与 libev
。 libev
库在 Windows 上对 IOCP 具有本机支持吗?
Considering libevent
vs. libev
. Does the libev
library have native support of IOCP on Windows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
libev 和 libevent 都使用 windows 上的 select 来检测和调度事件(事件核心不执行 I/O,只执行事件)。
libevent 另外还有一个套接字句柄抽象,它使用 Windows 上的 iocps 进行读取和写入。 libev 没有任何可比性。到目前为止看到的基准测试表明 libevent 的 iocp 后端并不是很快,因此如果您希望在 Windows 上快速运行,那么您最好在此时执行自己的 I/O。
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.
看一下 libuv,这是事件循环的另一个实现。它支持 IOCP 和其他后端。
这是很强大的,因为 Node.JS 使用了它。
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.
不,它使用select() ,就像 libevent 一样。
No, it uses select() , just as libevent does.