Is libuv just a wrapper on libev on POSIX systems?
Asked Answered
B

2

5

I am really confused between libev and libuv.

Is libuv just a wrapper on libev on POSIX systems?

If not where does it differ?

Burbank answered 7/8, 2014 at 5:3 Comment(0)
E
2

No longer, since libuv-v0.9

Here is the libuv github issue which tracked the removal of libev from libuv.

The reasons for removal are, to quote from the above linked issue:

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.

Erbe answered 18/8, 2014 at 3:16 Comment(0)
S
1

For completeness, as of today, we still don't use edge-triggered I/O on Linux.

Sherrod answered 14/9, 2014 at 9:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.