On Mon, 8 Sep 2014, Satish Balay wrote:

> On Mon, 8 Sep 2014, Jed Brown wrote:

> I guess I should look at speeding up etags [for usage from a git repo]

> > > balay@es^/scratch/balay/petsc(maint) $ date;make alletags; date
> > > Mon Sep  8 15:12:42 CDT 2014
> > > Mon Sep  8 15:14:49 CDT 2014

Currently etags is invoked in each dir in the source tree.

I've changed the code to get file list from each source dir, but
invoke the command only once [from PETSC_DIR]. This is much faster.

balay@es^/scratch/balay/petsc(maint) $ date; make alletags;date
Mon Sep  8 18:03:30 CDT 2014
Mon Sep  8 18:03:37 CDT 2014

i.e reduced time from 2-3min to 7sec

However there is some difference in output. 

>>>>>>>>>>>
balay@es^/scratch/balay/petsc/include(maint) $ etags makefile 
balay@es^/scratch/balay/petsc/include(maint) $ cat TAGS 


makefile,121
CFLAGS2,1
FFLAGS3,12
SOURCEC4,23
SOURCEF5,34
SOURCEH6,45
LIBBASE7,67
DIRS8,90
LOCDIR9,124
MANSEC10,144
balay@es^/scratch/balay/petsc/include(maint) $ etags ./makefile 
balay@es^/scratch/balay/petsc/include(maint) $ cat TAGS


makefile,12
CFLAGS2,1
balay@es^/scratch/balay/petsc/include(maint) $ 
<<<<<<<<<<

In the first case etags is processing 'makefile' as
--language=makefile. But in the second - case - its unable to infer
that info :(

Satish

Reply via email to