我真的很困惑 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:
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.
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/