Compare commits

...

1 Commits

Author SHA1 Message Date
phoebos 5cd40a62c0
kiss: don't pkg_order for checksum, download, list
These actions do not need a special order or dependency information.
The pkg_order function recurses through dependencies which is
unnecessary and takes extra time. For the packages with the most deps,
this patch can result in a 5-10x decrease in run time.
2023-07-19 15:49:23 +01:00
1 changed files with 7 additions and 5 deletions

12
kiss
View File

@ -1971,12 +1971,14 @@ args() {
export KISS_PATH="$sys_db:$KISS_PATH"
esac
# Order the argument list based on dependence.
pkg_order "$@"
case $action in b|build|i|install|r|remove)
# Order the argument list based on dependence.
pkg_order "$@"
# Intentional, globbing disabled.
# shellcheck disable=2046,2086
set -- $order
# Intentional, globbing disabled.
# shellcheck disable=2046,2086
set -- $order
esac
;;
esac