From 666f8a09b2701d01e67d711eaccff599b036de9b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Sep 2001 06:39:41 +0000 Subject: fixed the really awful performance problem with the stat cache when it ran out of primes and used a power of two hash modulus. It ended up sticking all the entries in just a few buckets. Yuck! (This used to be commit fdc9952391027e209fbd24f7794b1c2b551b1f9f) --- source3/include/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include/hash.h') diff --git a/source3/include/hash.h b/source3/include/hash.h index 2de7031855..80a1aaae50 100644 --- a/source3/include/hash.h +++ b/source3/include/hash.h @@ -22,7 +22,7 @@ #ifndef _HASH_H_ #define _HASH_H_ -#define MAX_HASH_TABLE_SIZE 32768 +#define MAX_HASH_TABLE_SIZE 16384 #define HASH_TABLE_INCREMENT 2 typedef int (*compare_function)(char *, char *); -- cgit