… | |
… | |
599 | overhead for the actual polling but can deliver many events at once. |
599 | overhead for the actual polling but can deliver many events at once. |
600 | |
600 | |
601 | By setting a higher I<io collect interval> you allow libev to spend more |
601 | By setting a higher I<io collect interval> you allow libev to spend more |
602 | time collecting I/O events, so you can handle more events per iteration, |
602 | time collecting I/O events, so you can handle more events per iteration, |
603 | at the cost of increasing latency. Timeouts (both C<ev_periodic> and |
603 | at the cost of increasing latency. Timeouts (both C<ev_periodic> and |
604 | C<ev_timer>) will be not affected. Setting this to a non-null bvalue will |
604 | C<ev_timer>) will be not affected. Setting this to a non-null value will |
605 | introduce an additional C<ev_sleep ()> call into most loop iterations. |
605 | introduce an additional C<ev_sleep ()> call into most loop iterations. |
606 | |
606 | |
607 | Likewise, by setting a higher I<timeout collect interval> you allow libev |
607 | Likewise, by setting a higher I<timeout collect interval> you allow libev |
608 | to spend more time collecting timeouts, at the expense of increased |
608 | to spend more time collecting timeouts, at the expense of increased |
609 | latency (the watcher callback will be called later). C<ev_io> watchers |
609 | latency (the watcher callback will be called later). C<ev_io> watchers |