Others: 关于libev – 相关资源

最近需要用到libev, 其实是很纠结用libev还是libevent。而libev相关的资料不太好获取,所以在这里做个备份。

  • 官网

http://software.schmorp.de/pkg/libev.html

libev

A full-featured and high-performance (see benchmark) event loop that is loosely modelled after libevent, but without its limitations and bugs. It is used in GNU Virtual Private Ethernet, rxvt-unicode, auditd, the Deliantra MORPG Server and Client, and many other programs.

Blurb

Features include child/pid watchers, periodic timers based on wallclock (absolute) time (in addition to timers using relative timeouts), as well as epoll/kqueue/event ports/inotify/eventfd/signalfd support, fast timer management, time jump detection and correction, and ease-of-use.

It can be used as a libevent replacement using its emulation API or directly embedded into your programs without the need for complex configuration support. A full-featured and well-documented perl interface is also available.

A mailing list for discussion and support is now available.

2017_05_30_screencapture-software-schmorp-de-pkg-libev-html-1493566220842

  • 关于

Homepage: http://software.schmorp.de/pkg/libev
Mailinglist: libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
Library Documentation: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod

 

Libev is modelled (very losely) after libevent and the Event perl module, but is faster, scales better and is more correct, and also more featureful. And also smaller. Yay.

 

Some of the specialties of libev not commonly found elsewhere are:
– extensive and detailed, readable documentation (not doxygen garbage).
– fully supports fork, can detect fork in various ways and automatically re-arms kernel mechanisms that do not support fork.
– highly optimised select, poll, epoll, kqueue and event ports backends.
– filesystem object (path) watching (with optional linux inotify support).
– wallclock-based times (using absolute time, cron-like).
– relative timers/timeouts (handle time jumps).
– fast intra-thread communication between multiple event loops (with optional fast linux eventfd backend).
– extremely easy to embed (fully documented, no dependencies, autoconf supported but optional).
– very small codebase, no bloated library, simple code.
– fully extensible by being able to plug into the event loop, integrate other event loops, integrate other event loop users.
– very little memory use (small watchers, small event loop data).
– optional C++ interface allowing method and function callbacks at no extra memory or runtime overhead.

– optional Perl interface with similar characteristics (capable of running Glib/Gtk2 on libev).
– support for other languages (multiple C++ interfaces, D, Ruby, Python) available from third-parties.

 

Examples of programs that embed libev: the EV perl module, node.js, auditd, rxvt-unicode, gvpe (GNU Virtual Private Ethernet), the Deliantra MMORPG server (http://www.deliantra.net/), Rubinius (a next-generation Ruby VM), the Ebb web server, the Rev event toolkit.

  • 下载地址

http://dist.schmorp.de/libev/

目前最新版本:http://dist.schmorp.de/libev/libev-4.24.tar.gz

CVS:Anonymous CVS:  cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co libev

  • 相关文档

原文档是pod格式的:http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod

pdf文档请看这里:ev_v4.24.pdf

  • 性能

官方的文档请看这里:http://libev.schmorp.de/bench.html

pdf格式请看这里:libev.schmorp.de_bench.pdf

2017_05_30_screencapture-libev-schmorp-de-bench-html-1493566011116_1280

发表评论

电子邮件地址不会被公开。 必填项已用*标注