compile in threaded indexing code by default

This commit is contained in:
Jean-Francois Dockes 2013-03-07 15:00:29 +01:00
parent 7b9f87267e
commit fa35040042
2 changed files with 7 additions and 11 deletions

11
src/configure vendored
View File

@ -1359,8 +1359,7 @@ Optional Features:
creates them on (part of) your data set. You also creates them on (part of) your data set. You also
need to set up appropriate mappings in the need to set up appropriate mappings in the
configuration. configuration.
--enable-idxthreads Enable multithread indexing. This can somewhat boost --disable-idxthreads Disable multithread indexing.
indexing performance.
--enable-camelcase Enable splitting camelCase words. This is not --enable-camelcase Enable splitting camelCase words. This is not
enabled by default as this makes phrase matches more enabled by default as this makes phrase matches more
difficult: you need to use matching case in the difficult: you need to use matching case in the
@ -4341,10 +4340,8 @@ _ACEOF
fi fi
fi fi
# Enable use of file extended attributes. Not by default as extended # Disable use of file extended attributes. With xattrs disabled we can use
# attributes are little used for now, and looking for them is not # mtime instead of ctime to look for file mods. Default is enabled.
# completely trivial: we have to use ctime instead of mtime to detect
# changes.
# Check whether --enable-xattr was given. # Check whether --enable-xattr was given.
if test "${enable_xattr+set}" = set; then : if test "${enable_xattr+set}" = set; then :
enableval=$enable_xattr; xattrEnabled=$enableval enableval=$enable_xattr; xattrEnabled=$enableval
@ -4367,7 +4364,7 @@ fi
if test "${enable_idxthreads+set}" = set; then : if test "${enable_idxthreads+set}" = set; then :
enableval=$enable_idxthreads; idxthreadsEnabled=$enableval enableval=$enable_idxthreads; idxthreadsEnabled=$enableval
else else
idxthreadsEnabled=no idxthreadsEnabled=yes
fi fi

View File

@ -181,10 +181,9 @@ fi
# absolute performance (more about impact on usability and total # absolute performance (more about impact on usability and total
# resources used). # resources used).
AC_ARG_ENABLE(idxthreads, AC_ARG_ENABLE(idxthreads,
AC_HELP_STRING([--enable-idxthreads], AC_HELP_STRING([--disable-idxthreads],
[Enable multithread indexing. This can somewhat boost indexing [Disable multithread indexing.]),
performance.]), idxthreadsEnabled=$enableval, idxthreadsEnabled=yes)
idxthreadsEnabled=$enableval, idxthreadsEnabled=no)
if test X$idxthreadsEnabled = Xyes ; then if test X$idxthreadsEnabled = Xyes ; then
AC_DEFINE(IDX_THREADS, 1, [Use multiple threads for indexing]) AC_DEFINE(IDX_THREADS, 1, [Use multiple threads for indexing])