lkml.org 
[lkml]   [1996]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch: cut 'make dep' time in half


On Thu, 5 Dec 1996, Michael Elizabeth Chastain wrote:

> I have a 'make dep' that runs in half the time of the stock 2.1.14 version.
> My patch is attached. Don't worry, it's less than 100 lines.

...

One question about a couple of lines in the patch:

> +set -e
> +dir_top=`pwd`
> +dir_list=`find $* -name '*.[chS]' -print | sed -e 's/^\(.*\)\/[^\/].*$/\1/p' | sort -u`
> +for dir in $dir_list ; do
> + cd $dir
> + $dir_top/scripts/mkdep *.[chS] > .depend
> + cd $dir_top
> +done

Couldn't the last two lines be switched for a small speed improvement?

-Tom Kludy


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.069 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site