summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-03 17:45:26 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-03 17:56:49 +0100
commit3b4cbca22f473708063c157cc75a2ef411fe6480 (patch)
tree75d6ad52ad637c0a0d7993e6753f778e57ad1944 /apt-pkg/pkgcache.cc
parent38a5b1ceeeca6ff530a2816a39bcd10d14c85d33 (diff)
Increase APT::Cache-HashTableSize default to 50503
This drop the hash table utilization from a high 98% to acceptable 74% on unstable, and the average bucket length from 4.6 to 1.8. This improves performance by about 5%, while increasing the size of the cache by 0.2 out of 38MB, that is 0.5%. 48481 is a nice number
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 4d8b9bc41..3c7fac642 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -94,7 +94,7 @@ pkgCache::Header::Header()
VerSysName = 0;
Architecture = 0;
SetArchitectures(0);
- SetHashTableSize(_config->FindI("APT::Cache-HashTableSize", 15013));
+ SetHashTableSize(_config->FindI("APT::Cache-HashTableSize", 50503));
memset(Pools,0,sizeof(Pools));
CacheFileSize = 0;