gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 02:15:27 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com