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
aclocal-defun.patch
Description: Binary data