Windows 上的 Libev

发布于 2024-12-13 22:26:14 字数 100 浏览 6 评论 0原文

考虑 libeventlibevlibev 库在 Windows 上对 IOCP 具有本机支持吗?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

日久见人心 2024-12-20 22:26:14

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.

め七分饶幸 2024-12-20 22:26:14

看一下 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.

糖粟与秋泊 2024-12-20 22:26:14

不,使用select() ,就像 libevent 一样。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文