[Top][All Lists]

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

Re: config files substitution with awk

From: Ralf Wildenhues
Subject: Re: config files substitution with awk
Date: Tue, 5 Dec 2006 06:56:37 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Karl Berry wrote on Tue, Dec 05, 2006 at 12:14:28AM CET:
> But for purposes of explaining to rms, can someone tell me (as briefly
> as possible :) why it is desirable to switch to awk instead of sticking
> with sed?
> (I can imagine some reasons, but best to ask, I figure.)

The primary reason for introducing it to Autoconf was, that it allows a
faster substitution of variables.  Roughly speaking, a sed script like

used on an input file of the form

has an overhead scaling quadratically in the number of variables.
The original proposal has more details and measurements:

FWIW, I am working on a larger change to the list of makefile and
installation utilities in standards.texi.  If you want to wait, I
can try to finish it this weekend.


reply via email to

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