forked from kiss-community/kiss
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.
This commit is contained in:
parent
584b905d17
commit
5cd40a62c0
12
kiss
12
kiss
@ -1971,12 +1971,14 @@ args() {
|
|||||||
export KISS_PATH="$sys_db:$KISS_PATH"
|
export KISS_PATH="$sys_db:$KISS_PATH"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Order the argument list based on dependence.
|
case $action in b|build|i|install|r|remove)
|
||||||
pkg_order "$@"
|
# Order the argument list based on dependence.
|
||||||
|
pkg_order "$@"
|
||||||
|
|
||||||
# Intentional, globbing disabled.
|
# Intentional, globbing disabled.
|
||||||
# shellcheck disable=2046,2086
|
# shellcheck disable=2046,2086
|
||||||
set -- $order
|
set -- $order
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user