summaryrefslogtreecommitdiffstats
path: root/proto.install
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-25 00:48:54 +0100
committerAllan McRae <allan@archlinux.org>2011-02-04 00:55:45 +0100
commit5dae577a87795e7666f05613cf9aa7207fd17346 (patch)
tree5e898c5c7290e83bf6da41c9bfd6293a24269d56 /proto.install
parente17b0446bd815f7b25f5bf0b838ef3d02d4eb64e (diff)
downloadpacman-5dae577a87795e7666f05613cf9aa7207fd17346.tar.gz
pacman-5dae577a87795e7666f05613cf9aa7207fd17346.tar.xz
Get estimated package count when populating databases
This works for both local and sync databases in slightly different ways. For the local database, we can use the directory hard link count on the local/ folder. For sync databases, we use the archive size coupled with some computed average per-package sizes to determine an estimate. This is currently a dead assignment once calculated, but could be used to set the initial size of a hash table. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'proto.install')
0 files changed, 0 insertions, 0 deletions