aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 497595cc..408f471d 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -520,6 +520,25 @@ call has fundamentally lower complexity (O(1) for @code{epoll()}
520vs. O(n) for @code{select()}/@code{poll()} where n is the number of 520vs. O(n) for @code{select()}/@code{poll()} where n is the number of
521open connections). 521open connections).
522 522
523@item MHD_USE_EPOLL_TURBO
524@cindex performance
525Enable optimizations to aggressively improve performance. Note that
526the option is a slight misnomer, as these days it also enables optimziations
527that are unrelated to @code{MHD_USE_EPOLL_LINUX_ONLY}. Hence it is OK to
528use this option with other event loops.
529
530Currently, the optimizations this option enables are based on
531opportunistic reads and writes. Bascially, MHD will simply try to
532read or write or accept on a socket before checking that the socket is
533ready for IO using the event loop mechanism. As the sockets are
534non-blocking, this may fail (at a loss of performance), but generally
535MHD does this in situations where the operation is likely to succeed,
536in which case performance is improved. Setting the flag should generally
537be safe (even though the code is slightly more experimental). You may
538want to benchmark your application to see if this makes any difference
539for you.
540
541
523@item MHD_SUPPRESS_DATE_NO_CLOCK 542@item MHD_SUPPRESS_DATE_NO_CLOCK
524@cindex date 543@cindex date
525@cindex clock 544@cindex clock