summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/db.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index ab8a15ec0d6..8ae651ff55f 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-31 Karl Berry <karl@tug.org>
+
+ * db.c (DB_HASH_SIZE): 32003 seems a better compromise between the
+ tiny texmf (~1300 entries) and huge texmf-dist (~62000 entries).
+
2008-05-29 Karl Berry <karl@tug.org>
* db.c (DB_HASH_SIZE): increase to 75000+, the actual size of
diff --git a/Build/source/texk/kpathsea/db.c b/Build/source/texk/kpathsea/db.c
index d6c501abc77..70a95cc9773 100644
--- a/Build/source/texk/kpathsea/db.c
+++ b/Build/source/texk/kpathsea/db.c
@@ -32,7 +32,10 @@
static hash_table_type db; /* The hash table for all the ls-R's. */
#ifndef DB_HASH_SIZE
-#define DB_HASH_SIZE 75079 /* Based on the size of 2008 texmf-dist/ls-R. */
+/* Based on the size of 2008 texmf-dist/ls-R, about 62000 entries. But
+ we don't want to make it too big, since texmf/ls-R only has about
+ 1300 entries. We should dynamically adapt the size. */
+#define DB_HASH_SIZE 32003
#endif
#ifndef DB_NAME
#define DB_NAME "ls-R"