bug-bash
[Top][All Lists]
Advanced

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

Re: libtool 2.4 args parsing incredibly slow


From: Ralf Wildenhues
Subject: Re: libtool 2.4 args parsing incredibly slow
Date: Sun, 30 Jan 2011 09:50:42 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello,

* Dan McGee wrote on Sun, Jan 30, 2011 at 01:04:17AM CET:
> On Sat, Jan 29, 2011 at 5:58 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> > On 1/25/11 10:08 PM, Peter O'Gorman wrote:
> >>   for lt_wr_arg
> >>   do
> >>     case \$lt_wr_arg in
> >>     --lt-*) ;;
> >>     *) set x "$@" "$lt_wr_arg"; shift;;
> >>     esac
> >>     shift
> >>   done

> > This is a terribly inefficient function.

Only if bash implements it inefficiently.  It doesn't have to scale
nonlinearly with an efficient shell implementation that special-cases
this idiom which is, by the way, used quite a bit in Posix shell
scripts.

> > Why not use what bash gives you?

> Probably because this is not a bash-specific script but designed to
> run in any sh interpreter.

Exactly.

Thanks,
Ralf



reply via email to

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