git: DragonFly_RELEASE_4_4 make(1): Create two more custom variables to speed up dports
John Marino
marino at crater.dragonflybsd.org
Sat Nov 28 02:29:48 PST 2015
commit dce4bc08b9b8dbce318e8614f0585a1033f1f72f
Author: John Marino <draco at marino.st>
Date: Sat Nov 28 02:39:15 2015 +0100
make(1): Create two more custom variables to speed up dports
I've added two new static values to bmake:
.MAKE.DF.OSREL
This will currently return "4.5"
.MAKE.DF.VERSION
This will currently return "400500". It matches what was in place on
/usr/src/sys/sys/param.h during the last buildworld.
Every dport runs piped shell commands to get these values. After iterating
through the entire ports tree several times, I noticed a large presence
of awk in process list. After modifying bmake and then modifying dports
locally, the iteration runs 15% faster. There are other optimizations
that can be done, but that's out of scope of this commit.
Summary of changes:
contrib/bmake/bmake.1 | 9 +++++++++
contrib/bmake/main.c | 2 ++
usr.bin/bmake/Makefile | 8 ++++++++
3 files changed, 19 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dce4bc08b9b8dbce318e8614f0585a1033f1f72f
--
DragonFly BSD source repository
More information about the Commits
mailing list