… | |
… | |
3676 | speed (but with the full API), define this symbol to C<1>. Currently this |
3676 | speed (but with the full API), define this symbol to C<1>. Currently this |
3677 | is used to override some inlining decisions, saves roughly 30% code size |
3677 | is used to override some inlining decisions, saves roughly 30% code size |
3678 | on amd64. It also selects a much smaller 2-heap for timer management over |
3678 | on amd64. It also selects a much smaller 2-heap for timer management over |
3679 | the default 4-heap. |
3679 | the default 4-heap. |
3680 | |
3680 | |
3681 | You can save even more by disabling watcher types you do not need and |
3681 | You can save even more by disabling watcher types you do not need |
3682 | setting C<EV_MAXPRI> == C<EV_MINPRI>. |
3682 | and setting C<EV_MAXPRI> == C<EV_MINPRI>. Also, disabling C<assert> |
|
|
3683 | (C<-DNDEBUG>) will usually reduce code size a lot. |
|
|
3684 | |
|
|
3685 | Defining C<EV_MINIMAL> to C<2> will additionally reduce the core API to |
|
|
3686 | provide a bare-bones event library. See C<ev.h> for details on what parts |
|
|
3687 | of the API are still available, and do not complain if this subset changes |
|
|
3688 | over time. |
3683 | |
3689 | |
3684 | =item EV_PID_HASHSIZE |
3690 | =item EV_PID_HASHSIZE |
3685 | |
3691 | |
3686 | C<ev_child> watchers use a small hash table to distribute workload by |
3692 | C<ev_child> watchers use a small hash table to distribute workload by |
3687 | pid. The default size is C<16> (or C<1> with C<EV_MINIMAL>), usually more |
3693 | pid. The default size is C<16> (or C<1> with C<EV_MINIMAL>), usually more |