[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Modernize, improve and/or extend tests `colon*.test.
From: |
Stefano Lattarini |
Subject: |
Re: [PATCH] Modernize, improve and/or extend tests `colon*.test. |
Date: |
Sun, 8 Aug 2010 19:09:46 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
At Sunday 08 August 2010, Ralf Wildenhues wrote:
> * Stefano Lattarini wrote on Sun, Aug 08, 2010 at 06:22:00PM CEST:
> > Exactly! So:
> > foo() { foo_result=`sed ...`; }
> > foo; bar=$foo_result;
> >
> > instead of:
> > foo() { sed ...; }
> > bar=`foo`
> >
> > Where is the significant improvement?
>
> Two forks vs. one: the latter still forks right before exec'ing
> sed.
And the first doesn't?
> Arguably, this is less important in the testsuite than it is
> in hot spots in configure and libtool.
True enough; this discussion is just fo the sake of getting
"the theory" right (on may part, at least).
Thanks,
Stefano
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., (continued)
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Stefano Lattarini, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Ralf Wildenhues, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Stefano Lattarini, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Ralf Wildenhues, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Stefano Lattarini, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Ralf Wildenhues, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Stefano Lattarini, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Ralf Wildenhues, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Stefano Lattarini, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test., Ralf Wildenhues, 2010/08/08
- Re: [PATCH] Modernize, improve and/or extend tests `colon*.test.,
Stefano Lattarini <=
- avoiding forks in shell scripts (was: [PATCH] Modernize, improve and/or extend tests `colon*.test.), Ralf Wildenhues, 2010/08/08
- Re: avoiding forks in shell scripts (was: [PATCH] Modernize, improve and/or extend tests `colon*.test.), Stefano Lattarini, 2010/08/08