diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-24 17:48:54 -0600 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2011-02-04 09:55:45 +1000 |
commit | 5dae577a87795e7666f05613cf9aa7207fd17346 (patch) | |
tree | 5e898c5c7290e83bf6da41c9bfd6293a24269d56 /src/util/pactree.c | |
parent | e17b0446bd815f7b25f5bf0b838ef3d02d4eb64e (diff) | |
download | 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 'src/util/pactree.c')
0 files changed, 0 insertions, 0 deletions