From abaae7630ec9df0adca1ec012ddbcc4b211e54f1 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Thu, 18 Dec 2014 14:43:07 +0200 Subject: Make it possible to set initial hashtable size Fixes #213. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 433b499..8c9adcd 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,13 @@ AC_DEFINE([USE_WINDOWS_CRYPTOAPI], [1], [Define to 1 if CryptGenRandom should be used for seeding the hash function]) fi +AC_ARG_ENABLE([initial-hashtable-order], + [AS_HELP_STRING([--enable-initial-hashtable-order=VAL], + [Number of buckets new object hashtables contain is 2 raised to this power. The default is 3, so empty hashtables contain 2^3 = 8 buckets.])], + [initial_hashtable_order=$enableval], [initial_hashtable_order=3]) +AC_DEFINE_UNQUOTED([INITIAL_HASHTABLE_ORDER], [$initial_hashtable_order], + [Number of buckets new object hashtables contain is 2 raised to this power. E.g. 3 -> 2^3 = 8.]) + if test x$GCC = xyes; then AM_CFLAGS="-Wall -Wextra -Wdeclaration-after-statement" fi -- cgit v1.1