1 | libev is modelled after libevent (http://monkey.org/~provos/libevent/), but aims |
1 | libev is a high-performance event loop/event model with lots of features. |
2 | to be faster and more correct, and also more featureful. Examples: |
2 | (see benchmark at http://libev.schmorp.de/bench.html) |
3 | |
3 | |
4 | - multiple watchers can wait for the same event without deregistering others. |
|
|
5 | - fork() is supported and can be handled. |
|
|
6 | - timers are handled as a priority queue (faster) |
|
|
7 | - watchers use less memory (faster) |
|
|
8 | - less calls to epoll_ctl (faster) |
|
|
9 | |
4 | |
|
|
5 | ABOUT |
|
|
6 | |
|
|
7 | Homepage: http://software.schmorp.de/pkg/libev |
|
|
8 | Mailinglist: libev@lists.schmorp.de |
|
|
9 | http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev |
|
|
10 | Library Documentation: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod |
|
|
11 | |
|
|
12 | Libev is modelled (very loosely) after libevent and the Event perl |
|
|
13 | module, but is faster, scales better and is more correct, and also more |
|
|
14 | featureful. And also smaller. Yay. |
|
|
15 | |
|
|
16 | Some of the specialties of libev not commonly found elsewhere are: |
|
|
17 | |
|
|
18 | - extensive and detailed, readable documentation (not doxygen garbage). |
|
|
19 | - fully supports fork, can detect fork in various ways and automatically |
|
|
20 | re-arms kernel mechanisms that do not support fork. |
|
|
21 | - highly optimised select, poll, linux epoll, linux aio, bsd kqueue |
|
|
22 | and solaris event ports backends. |
|
|
23 | - filesystem object (path) watching (with optional linux inotify support). |
|
|
24 | - wallclock-based times (using absolute time, cron-like). |
|
|
25 | - relative timers/timeouts (handle time jumps). |
|
|
26 | - fast intra-thread communication between multiple |
|
|
27 | event loops (with optional fast linux eventfd backend). |
|
|
28 | - extremely easy to embed (fully documented, no dependencies, |
|
|
29 | autoconf supported but optional). |
|
|
30 | - very small codebase, no bloated library, simple code. |
|
|
31 | - fully extensible by being able to plug into the event loop, |
|
|
32 | integrate other event loops, integrate other event loop users. |
|
|
33 | - very little memory use (small watchers, small event loop data). |
|
|
34 | - optional C++ interface allowing method and function callbacks |
|
|
35 | at no extra memory or runtime overhead. |
|
|
36 | - optional Perl interface with similar characteristics (capable |
|
|
37 | of running Glib/Gtk2 on libev). |
|
|
38 | - support for other languages (multiple C++ interfaces, D, Ruby, |
|
|
39 | Python) available from third-parties. |
|
|
40 | |
|
|
41 | Examples of programs that embed libev: the EV perl module, auditd, |
|
|
42 | rxvt-unicode, gvpe (GNU Virtual Private Ethernet), the Deliantra MMORPG |
|
|
43 | server (http://www.deliantra.net/), Rubinius (a next-generation Ruby |
|
|
44 | VM), the Ebb web server, the Rev event toolkit. |
|
|
45 | |
|
|
46 | |
|
|
47 | CONTRIBUTORS |
|
|
48 | |
|
|
49 | libev was written and designed by Marc Lehmann and Emanuele Giaquinta. |
|
|
50 | |
|
|
51 | The following people sent in patches or made other noteworthy |
|
|
52 | contributions to the design (for minor patches, see the Changes |
|
|
53 | file. If I forgot to include you, please shout at me, it was an |
|
|
54 | accident): |
|
|
55 | |
|
|
56 | W.C.A. Wijngaards |
|
|
57 | Christopher Layne |
|
|
58 | Chris Brody |
|
|
59 | |