summaryrefslogtreecommitdiff
path: root/config/ac-macros/misc.m4
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-03-06 00:10:08 +0300
committerkonstantin@mysql.com <>2005-03-06 00:10:08 +0300
commit0f1d024461161f200800626f0020daf048c10cbf (patch)
tree431745f4c1466da5a5fa719302ab3a443eb8f819 /config/ac-macros/misc.m4
parente25a5877e02f5140a7a23a88493e484003bdbbad (diff)
downloadmariadb-git-0f1d024461161f200800626f0020daf048c10cbf.tar.gz
Porting of "buffered read" patch to 5.0 and post-review fixes.
The patch implements the idea suggested by Olaf van der Spek in thread "Client: many small reads?" (internals@lists.mysql.com). Now small reads performed by the client library are buffered. The buffering gives up to 2 times speedup when retrieving one-column tables.
Diffstat (limited to 'config/ac-macros/misc.m4')
-rw-r--r--config/ac-macros/misc.m423
1 files changed, 7 insertions, 16 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4
index ec0c296a8b2..556cc7625cc 100644
--- a/config/ac-macros/misc.m4
+++ b/config/ac-macros/misc.m4
@@ -594,22 +594,13 @@ AC_MSG_RESULT($ac_cv_conv_longlong_to_float)
])
AC_DEFUN([MYSQL_CHECK_VIO], [
- AC_ARG_WITH([vio],
- [ --with-vio Include the Virtual IO support],
- [vio="$withval"],
- [vio=no])
-
- if test "$vio" = "yes"
- then
- vio_dir="vio"
- vio_libs="../vio/libvio.la"
- AC_DEFINE(HAVE_VIO, 1)
- else
- vio_dir=""
- vio_libs=""
- fi
- AC_SUBST([vio_dir])
- AC_SUBST([vio_libs])
+dnl
+dnl we always use vio: no need for special defines
+dnl
+ AC_DEFINE([HAVE_VIO_READ_BUFF], [1],
+ [Define to enable buffered read. This works only if syscalls
+ read/recv return as soon as there is some data in the kernel
+ buffer, no matter how big the given buffer is.])
])
# Local version of _AC_PROG_CXX_EXIT_DECLARATION that does not