Windows 上的 Libev [英] Libev on Windows

查看:21
本文介绍了Windows 上的 Libev的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑 libeventlibev.libev 库是否对 Windows 上的 IOCP 提供本机支持?

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

推荐答案

libev 和 libevent 在 windows 上都使用 select 来检测和调度事件(事件核心不做 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另外有一个socket句柄抽象,它在windows上使用iocps来做读写.libev 没有任何可比的东西.到目前为止看到的基准测试表明,libevent 的 iocp 后端不是很快,所以如果您在 Windows 上寻找快速,此时最好进行自己的 I/O.

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.

这篇关于Windows 上的 Libev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆