Subject: Re: rebuilding stale .depend files
To: None <tech-toolchain@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-toolchain
Date: 11/03/2003 12:19:12
> > How much overhead does this add to a build? i.e. have you measured
> > pre-patch and post-patch for a static tree?
> 
> Times for make depend in src/sys/arch/i386/stand:
> new:       25.77 real        16.84 user        13.94 sys
> old:       15.47 real        14.61 user         3.96 sys
> 
> I think the difference is almost entirely down to the shell doing
> single character reads - and is more than I thought it would be.

Using:
deps != sed 's/^.*://;s/ \\$$//' .depend
(instead of getting the shell to do it) halves the overhead.
It would be even better if make didn't use /bin/sh to execute sed.

	David

-- 
David Laight: david@l8s.co.uk