diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-13 06:01:14 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-15 04:00:02 +0100 |
commit | c244cfecf654d34032585530f00d68501ec63d77 (patch) | |
tree | 36c5a35953573e0038c7b89ea26f568b0e081f16 /scripts/pacman-optimize.sh.in | |
parent | 8757398a7e3132166a2e20605c02dfdc2abc3d1d (diff) | |
download | pacman-c244cfecf654d34032585530f00d68501ec63d77.tar.gz pacman-c244cfecf654d34032585530f00d68501ec63d77.tar.xz |
Move alpm_splitdep usage to db_read
Holy inefficient batman! For a pacman -Qt operation (when we are using
compute_requiredby and not database entries), splitdep was being called ~1.3
million times on my local database. By splitting when we read the DB, we
drop this number to around 1700 and save a LOT of time in doing so (a 5x
increase in pacman -Qt speed here).
Note that the depends alpm_list_t in the package struct is no longer a
string list, but a list of pmdepent_t objects.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/pacman-optimize.sh.in')
0 files changed, 0 insertions, 0 deletions