Kouhei Sutou
null+****@clear*****
Sat Jan 24 12:38:35 JST 2015
Kouhei Sutou 2015-01-24 12:38:35 +0900 (Sat, 24 Jan 2015) New Revision: 04364b597a4d884bcf18d0b860aa9f0ccf540941 https://github.com/groonga/groonga/commit/04364b597a4d884bcf18d0b860aa9f0ccf540941 Message: Add --with-jemalloc option to use jemalloc for malloc()/free() It'll improve performance on multi-threading usage. Modified files: configure.ac Modified: configure.ac (+17 -0) =================================================================== --- configure.ac 2015-01-24 09:45:32 +0900 (a4d9ad2) +++ configure.ac 2015-01-24 12:38:35 +0900 (569f14b) @@ -914,6 +914,22 @@ if test "x$with_lz4" != "xno"; then fi fi +# jemalloc +AC_ARG_WITH(jemalloc, + [AS_HELP_STRING([--with-jemalloc], + [Use jemalloc for memory allocation. [default=no]])], + [with_jemalloc="$withval"], + [with_jemalloc="no"]) +jemalloc_available="no" +if test "x$with_jemalloc" != "xno"; then + if test "x$with_jemalloc" != "xyes"; then + LDFLAGS="-L$with_jemalloc $LDFLAGS" + fi + AC_SEARCH_LIBS(mallocx, jemalloc, + [jemalloc_available="yes"], + [AC_MSG_ERROR("No libjemalloc found")]) +fi + # MeCab # NOTE: MUST be checked last AC_ARG_WITH(mecab, @@ -1596,6 +1612,7 @@ if test "x$message_pack_available" = "xyes"; then echo " LIBS: ${MESSAGE_PACK_LIBS}" fi echo " mruby: $enable_mruby" +echo " jemalloc: $jemalloc_available" echo echo "groonga-httpd:" -------------- next part -------------- HTML����������������������������...Download