libuv - libuv 只是 POSIX 系统上 libev 的包装器吗?

标签 libuv libev

我真的很困惑 libev 和 libuv。

libuv 只是 POSIX 系统上 libev 的包装器吗?

如果不是,它的区别在哪里?

最佳答案

不再,因为 libuv-v0.9

Here is the libuv github issue它跟踪从 libuv 中删除 libev。

删除的原因是,引用上面链接的问题:

In case any project watchers are wondering, libev served us well but:

  1. It only supports level-triggered I/O. On Linux, we want to use edge-triggered mode - it cuts down the number of syscalls by a substantial margin.

  2. libev's inner loop does a lot of things we don't really need. Gutting the inner loop like we did in 649ad50 gave a 40% performance increase on some benchmarks.

关于libuv - libuv 只是 POSIX 系统上 libev 的包装器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25174517/

相关文章:

node.js - libuv 和 Node.js 实际上是如何调度定时器的?

c++ - libuv线程安全吗?

c - Libev,如何将参数传递给相关回调

C/libev : program closes when event is triggered

data-structures - libev观察者的数据结构

node.js - 如何编写使用线程的 Node.js 代码?

.net - libuv 与 asp.net core 2.1 中的套接字

multithreading - libuv 与原始 epoll 或 IOCP

c - libev套接字通信失败

c - libev 网络服务器读取文件