diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-31 15:39:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-31 15:39:53 +0000 |
commit | 26c66074bcf029091249999b63594dacdd79ba36 (patch) | |
tree | f158115c0fdacf2cff72442d78457a30e93ddb28 /Build | |
parent | 6e0d06a5537e99bcf575e5bdd597450a6d2688bc (diff) |
reduce hash size to 32003
git-svn-id: svn://tug.org/texlive/trunk@8430 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/db.c | 5 |
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" |