ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.98 by root, Sat Dec 22 06:10:25 2007 UTC vs.
Revision 1.99 by root, Sat Dec 22 06:16:36 2007 UTC

596overhead for the actual polling but can deliver many events at once. 596overhead for the actual polling but can deliver many events at once.
597 597
598By setting a higher I<io collect interval> you allow libev to spend more 598By setting a higher I<io collect interval> you allow libev to spend more
599time collecting I/O events, so you can handle more events per iteration, 599time collecting I/O events, so you can handle more events per iteration,
600at the cost of increasing latency. Timeouts (both C<ev_periodic> and 600at the cost of increasing latency. Timeouts (both C<ev_periodic> and
601C<ev_timer>) will be not affected. 601C<ev_timer>) will be not affected. Setting this to a non-null bvalue will
602introduce an additional C<ev_sleep ()> call into most loop iterations.
602 603
603Likewise, by setting a higher I<timeout collect interval> you allow libev 604Likewise, by setting a higher I<timeout collect interval> you allow libev
604to spend more time collecting timeouts, at the expense of increased 605to spend more time collecting timeouts, at the expense of increased
605latency (the watcher callback will be called later). C<ev_io> watchers 606latency (the watcher callback will be called later). C<ev_io> watchers
606will not be affected. 607will not be affected. Setting this to a non-null value will not introduce
608any overhead in libev.
607 609
608Many (busy) programs can usually benefit by setting the io collect 610Many (busy) programs can usually benefit by setting the io collect
609interval to a value near C<0.1> or so, which is often enough for 611interval to a value near C<0.1> or so, which is often enough for
610interactive servers (of course not for games), likewise for timeouts. It 612interactive servers (of course not for games), likewise for timeouts. It
611usually doesn't make much sense to set it to a lower value than C<0.01>, 613usually doesn't make much sense to set it to a lower value than C<0.01>,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines