summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-08-01 04:38:09 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-08-01 04:38:09 +0000
commit6c547bc312ef528815040e42ca5e80233ff98265 (patch)
tree3db711bda4bfe6a69e45e50eeaad5c9ce1a3f42e /server
parentca87d1f9de1b0d41d273d0149980153cc516e217 (diff)
Increased hash bucket table size
Diffstat (limited to 'server')
-rw-r--r--server/class.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/class.c b/server/class.c
index c959d5d..768ede2 100644
--- a/server/class.c
+++ b/server/class.c
@@ -74,12 +74,11 @@ static char rcsid_class_c[] =
/* Private variables */
#define EMPTY_CLASS 2000
-#define HASHSIZE 511
-#define HASHMUL 243
+#define HASHSIZE 1023
+#define CLASS_HASHVAL(cl,in) (cl->hash_val ^ in->hash_val) % HASHSIZE
static ZClass_t *class_bucket[HASHSIZE]; /* the hash table of pointers */
-#define CLASS_HASHVAL(cl,in) (cl->hash_val ^ in->hash_val) % HASHSIZE
#ifdef __STDC__
# define P(s) s