summaryrefslogtreecommitdiffstats
path: root/cron-jobs/check_archlinux
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-09-03 23:34:24 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 22:19:22 +0200
commitb36b754497df69778273f6a6e7b0d91679646565 (patch)
tree3ade4e55016bd5dadecad4b92f0a031235d3ec8e /cron-jobs/check_archlinux
parentfe4152a6949a9ec3132d1a1c08335f370989198f (diff)
downloaddbscripts-b36b754497df69778273f6a6e7b0d91679646565.tar.gz
dbscripts-b36b754497df69778273f6a6e7b0d91679646565.tar.xz
parse_pkgbuilds : simple performance tweak
this simple tweak gives a nice perf boost : from 10s to 7s to parse extra repo. indeed calling basename caused a fork to happen for the thousand of files being considered Now the major bottleneck is parsing split pkgbuilds, but I am afraid there is no magical solution for that :( Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/check_archlinux')
-rwxr-xr-xcron-jobs/check_archlinux/parse_pkgbuilds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/check_archlinux/parse_pkgbuilds.sh b/cron-jobs/check_archlinux/parse_pkgbuilds.sh
index 0faa29f..c2df7d1 100755
--- a/cron-jobs/check_archlinux/parse_pkgbuilds.sh
+++ b/cron-jobs/check_archlinux/parse_pkgbuilds.sh
@@ -113,7 +113,7 @@ source_pkgbuild() {
find_pkgbuilds() {
#Skip over some dirs
- local d="$(basename $1)"
+ local d="${1##*/}"
if [ "$d" = "CVS" -o "$d" = ".svn" ]; then
return
fi