From b36b754497df69778273f6a6e7b0d91679646565 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Thu, 3 Sep 2009 23:34:24 +0200 Subject: 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 Signed-off-by: Aaron Griffin --- cron-jobs/check_archlinux/parse_pkgbuilds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cron-jobs/check_archlinux') 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 -- cgit v1.2.3-24-g4f1b