[Top][All Lists]

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

Re: -pipe passed to gcc via Automake

From: Harlan Stenn
Subject: Re: -pipe passed to gcc via Automake
Date: Sun, 21 Oct 2007 19:59:30 +0000

Benoit wrote:
> I usually do this in my
> # Speed GCC compilation up.
> if test "$GXX" = yes; then
> fi

I use case statements wherever possible instead of 'test'.

While 'case' is a shell builtin, 'test' may not be.  If there are a
bunch of checks being done, it can be significantly faster to use 'case'
instead of 'test'.

Disclaimer: I have been doing this for Years (I picked it up from Larry
Wall sometime before I took over the maintenance of metaconfig) and have
not tested it lately.


reply via email to

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