automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

aclocal performance


From: John Vandenberg
Subject: aclocal performance
Date: Sat, 11 Jun 2005 00:36:17 +1000

Hi,

I recently accidently ran into a ~10% performance improvement in
aclocal.  The attached patch requests autom4te only traces 'defun'
macros that aclocal has noticed, rather than a static list of all the
alternatives.

Im not sure whether there is a good reason why AU_ALIAS should not be
traced; if so, the patch needs a minor alteration.  Another
questionable change is this patch traces any A?_DEFUN it finds,
assuming that if its named appropriately, and the user has called
aclocal, they probably expect the macro body to be found.  I dont mind
if its left as A[CU]_..

Running aclocal on gcc goes from 11.486 (11.160 + 0.326) to 10.362
(10.045 + 0.316) on my box (PIII 400 MHz); other codebases also have
similar gains.

Im new here, so feel free to point out anything remotely related.

John

Attachment: aclocal-defun.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]