svn commit: r399703 - head/Mk/Scripts
Bryan Drewery
bdrewery at FreeBSD.org
Mon Oct 19 18:01:57 UTC 2015
Author: bdrewery
Date: Mon Oct 19 18:01:56 2015
New Revision: 399703
URL: https://svnweb.freebsd.org/changeset/ports/399703
Log:
When listing dependencies, export the common command execution results.
In some basic benchmarks this sped up 'all-depends-list' about 20%. x11/kde4
went from 52 seconds to 41 seconds. More improvement is expected once
more command executions are cached in the 'export_ports_env' function.
With hat: portmgr
Modified:
head/Mk/Scripts/depends-list.sh
Modified: head/Mk/Scripts/depends-list.sh
==============================================================================
--- head/Mk/Scripts/depends-list.sh Mon Oct 19 17:15:54 2015 (r399702)
+++ head/Mk/Scripts/depends-list.sh Mon Oct 19 18:01:56 2015 (r399703)
@@ -23,6 +23,8 @@ shift $((OPTIND-1))
validate_env dp_ALLDEPENDS dp_PORTSDIR dp_PKGNAME
[ ${recursive} -eq 1 ] && validate_env dp_MAKE
+MAKE="${dp_MAKE}" PORTSDIR="${dp_PORTSDIR}" export_ports_env >/dev/null
+
set -u
check_dep() {
More information about the svn-ports-all
mailing list