diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-09 06:32:19 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-09 22:36:05 +0200 |
commit | 9d3d647f0031edd31fc7442f9d2cd9729718e41c (patch) | |
tree | c730e1cb3631e849d6490113d0efe6054b4ba344 /scripts/pacman-optimize.sh.in | |
parent | 5f38660be12c898e6ddef0d09b973d259d80c763 (diff) | |
download | pacman-9d3d647f0031edd31fc7442f9d2cd9729718e41c.tar.gz pacman-9d3d647f0031edd31fc7442f9d2cd9729718e41c.tar.xz |
pactest: improve speed of local DB dependent rules
We were doing some really silly stuff before and abusing the os.walk()
call, having to walk the entire local database for every single PKG
rule. We really only need top level directories, and we can cache any
generated package since calls to db_read() are well-defined and only
happen in one place.
This speeds up the running of tests that may want to add 100 PKG_VERSION
rules at once, where before we had to limit how many we used in order to
not put a serious cramp in the speed of the test suite run.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/pacman-optimize.sh.in')
0 files changed, 0 insertions, 0 deletions