… | |
… | |
4620 | #define EV_USE_POLL 1 |
4620 | #define EV_USE_POLL 1 |
4621 | #define EV_CHILD_ENABLE 1 |
4621 | #define EV_CHILD_ENABLE 1 |
4622 | #define EV_ASYNC_ENABLE 1 |
4622 | #define EV_ASYNC_ENABLE 1 |
4623 | |
4623 | |
4624 | The actual value is a bitset, it can be a combination of the following |
4624 | The actual value is a bitset, it can be a combination of the following |
4625 | values: |
4625 | values (by default, all of these are enabled): |
4626 | |
4626 | |
4627 | =over 4 |
4627 | =over 4 |
4628 | |
4628 | |
4629 | =item C<1> - faster/larger code |
4629 | =item C<1> - faster/larger code |
4630 | |
4630 | |
… | |
… | |
4634 | code size by roughly 30% on amd64). |
4634 | code size by roughly 30% on amd64). |
4635 | |
4635 | |
4636 | When optimising for size, use of compiler flags such as C<-Os> with |
4636 | When optimising for size, use of compiler flags such as C<-Os> with |
4637 | gcc is recommended, as well as C<-DNDEBUG>, as libev contains a number of |
4637 | gcc is recommended, as well as C<-DNDEBUG>, as libev contains a number of |
4638 | assertions. |
4638 | assertions. |
|
|
4639 | |
|
|
4640 | The default is off when C<__OPTIMIZE_SIZE__> is defined by your compiler |
|
|
4641 | (e.g. gcc with C<-Os>). |
4639 | |
4642 | |
4640 | =item C<2> - faster/larger data structures |
4643 | =item C<2> - faster/larger data structures |
4641 | |
4644 | |
4642 | Replaces the small 2-heap for timer management by a faster 4-heap, larger |
4645 | Replaces the small 2-heap for timer management by a faster 4-heap, larger |
4643 | hash table sizes and so on. This will usually further increase code size |
4646 | hash table sizes and so on. This will usually further increase code size |
4644 | and can additionally have an effect on the size of data structures at |
4647 | and can additionally have an effect on the size of data structures at |
4645 | runtime. |
4648 | runtime. |
|
|
4649 | |
|
|
4650 | The default is off when C<__OPTIMIZE_SIZE__> is defined by your compiler |
|
|
4651 | (e.g. gcc with C<-Os>). |
4646 | |
4652 | |
4647 | =item C<4> - full API configuration |
4653 | =item C<4> - full API configuration |
4648 | |
4654 | |
4649 | This enables priorities (sets C<EV_MAXPRI>=2 and C<EV_MINPRI>=-2), and |
4655 | This enables priorities (sets C<EV_MAXPRI>=2 and C<EV_MINPRI>=-2), and |
4650 | enables multiplicity (C<EV_MULTIPLICITY>=1). |
4656 | enables multiplicity (C<EV_MULTIPLICITY>=1). |