Looking for speed increases in "make index" and pkg_version for ports

Hartmut Brandt hartmut.brandt at dlr.de
Mon May 28 21:32:54 UTC 2007


Mike Meyer wrote:
> In <465AB421.10802 at dlr.de>, Hartmut Brandt <hartmut.brandt at dlr.de> typed:
>> 1. make and its sub-makes for a) reading the file; b) parsing the file
>> (note that .if and .for processing is done while parsing); c) processing
>> targets.
> 
> Make and submakes have been gone over already. See <URL:
> http://miller.emu.id.au/pmiller/books/rmch/ >.
> 
> I'm not sure it can be applied to the ports tree, though. I haven't
> looked into it, but recalled this paper when you mentioned measuring
> makes and sub-makes.

Unfortunately you deleted the sentence before, so I rephrase it: before 
looking into optimizations find out where the time is actually spend - 
how many seconds of the hours the process takes, are actually spent in 
make and sub-makes. If the entire process takes 2 hours of which the 
makes take 20 seconds then by enhancing performance of make by 50% you 
win 10 seconds. This is probably not worth a single line of additional code.

The paper you point to talks about something entirely different.

harti


More information about the freebsd-ports mailing list