From e3e94f141e15f5501ed81402a70beb10b85ccd6f Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 17 Dec 2011 10:54:24 -0600 Subject: use a c-version of concat-deps.pl This touch configure.in with a trivial space removal to force a ./bootstrap on the tinderboxes This make ./bootstrap build a 'build-side' executable concat-deps and modify LinkTarget.mk to use it instead of concat-deps.pl The impact is a conservative x10 times improvement in both elapsed and cpu time in overhead due to DEP generations. time make -sr build in tail_build after removing workdir/$INPATH/Dep/LinkTarget/Library/* (all on Intel X3360, 2.83GHz, 4-core) before: elapsed: 116.5 cpu: 115.9 after elapsed: 24.3 cpu: 23.9 base (no dep processing, i.e no rm of Dep/...) elapsed: 17.5 cpu: 17.4 overhead ratio: elapsed: 14.5x cpu: 15x same with -j6 before: elapsed: 47 cpu: 116 after: elapsed: 20.8 cpu: 24 base: elapsed: 17.5 cpu: 17.5 overhead ratio: elapsed: 9x cpu: 15x Note: for now the executable is generated directly in the source tree (in solevn/bin ). That is not ideal. It and other similar polution should be moved, to workdir most likely.. For now we just hide the mess under the .gitignore carpet --- bootstrap | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index 1bf5068f02b7..da1192c48882 100755 --- a/bootstrap +++ b/bootstrap @@ -74,6 +74,10 @@ if test "$BUILD_DMAKE" != "NO"; then echo "dmake copied to $SOLARENV/$OUTPATH_FOR_BUILD/bin/dmake$EXEEXT" fi +# build concat-deps +echo "building concat-deps" +$CC_FOR_BUILD -O2 "$SOLARENV/bin/concat-deps.c" -o "$SOLARENV/bin/concat-deps" || exit + #make sure build.pl is executable chmod +x "$SRC_ROOT/solenv/bin/build.pl" -- cgit