[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GMAKE speed ups.
GMAKE speed ups.
Thu, 6 Mar 2003 17:52:19 -0000
I thought others might be interested in the findings of doing some gmake
performance improvements - I sought advice here and Paul Smith was kind
enough to help me along the way.
Problem: It was taking GMAKE some 4.5 seconds to decide nothing was needed
when building a library from 5 source files. A large number of headers for
these files were on the network. With all the files local, the processing
time was 1.3 seconds. With "gmake -r" on the network, the time went down to
It is possible to achieve the same level of speed up by changing the
makefiles themselves rather than using the "-r" option. The following
Add the following rule to the makefile.
This resulted improvement to 2.6 seconds for the same GMAKE invokation.
Explicitly disable the built-in rules - there isn't an easy way to do this,
but its worth it. These can be found with "gmake -p", but here is the full
%.c: %.w %.ch
%.tex: %.w %.ch
This improved the performance further to .6 seconds. I did some basic
analysis to figure out what was taking the most time out of all these rules
and it has proven to be the :: rules for RCS and SCCS updating. Even with a
few files, the checks that these rules invoked added significantly to
overall processing time.
I hand not seen the level of the problem before, but in the system I am
working on, there are several hundred gmake invokations and overall build
time is high. Obviously, the benefit here is limited to the GMAKE processing
time and only relevant when accessing files on network drives, but every
- GMAKE speed ups.,
Bijal Shah <=