]> git.saurik.com Git - apt.git/commit - apt-pkg/pkgcache.cc
Increase APT::Cache-HashTableSize default to 50503
authorJulian Andres Klode <jak@debian.org>
Sun, 3 Jan 2016 16:45:26 +0000 (17:45 +0100)
committerJulian Andres Klode <jak@debian.org>
Sun, 3 Jan 2016 16:56:49 +0000 (17:56 +0100)
commit3b4cbca22f473708063c157cc75a2ef411fe6480
tree75d6ad52ad637c0a0d7993e6753f778e57ad1944
parent38a5b1ceeeca6ff530a2816a39bcd10d14c85d33
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
apt-pkg/pkgcache.cc