[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _AS_DETECT_BETTER_SHELL speedup
From: |
Stepan Kasal |
Subject: |
Re: _AS_DETECT_BETTER_SHELL speedup |
Date: |
Mon, 31 Jan 2005 08:30:08 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Sat, Jan 29, 2005 at 06:34:19AM -0800, Noah Misch wrote:
> On Sat, Jan 29, 2005 at 03:03:53PM +0100, Alexandre Duret-Lutz wrote:
> > $ strace bash -c '{ foo; } 2>/dev/null' 2>&1 | grep clone
> > clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> > child_tidptr=0xb7f93bc8) = 19138
...
> It indeed turns out that `bash' and the V7 Bourne shell fork in all three
> cases,
> `ash' and `pdksh' fork only in the first two, and `zsh' forks for none.
I had to use
$ strace bash -c '{ foo; } 2>/dev/null' 2>&1 | grep fork
with my Linux 2.4.x kernel.
But yes, this proves that "{ ...; }" has no advantage over "(exec ...)".
This also means that we don't need any benchmark from the Cygwin people.
(I apologize to cygwin subscribers.)
Thank you, Alexandr,
Stepan Kasal
- Re: _AS_DETECT_BETTER_SHELL speedup, (continued)
- Re: _AS_DETECT_BETTER_SHELL speedup, Paul Eggert, 2005/01/27
- Re: _AS_DETECT_BETTER_SHELL speedup, Ralf Wildenhues, 2005/01/27
- Re: _AS_DETECT_BETTER_SHELL speedup, Paul Eggert, 2005/01/28
- Re: _AS_DETECT_BETTER_SHELL speedup, Stepan Kasal, 2005/01/28
- Re: _AS_DETECT_BETTER_SHELL speedup, Ralf Wildenhues, 2005/01/28
- Re: _AS_DETECT_BETTER_SHELL speedup, Paul Eggert, 2005/01/28
- Re: _AS_DETECT_BETTER_SHELL speedup, Alexandre Duret-Lutz, 2005/01/29
- Re: _AS_DETECT_BETTER_SHELL speedup, Noah Misch, 2005/01/29
- Re: _AS_DETECT_BETTER_SHELL speedup, Alexandre Duret-Lutz, 2005/01/29
- Re: _AS_DETECT_BETTER_SHELL speedup, Noah Misch, 2005/01/29
- Re: _AS_DETECT_BETTER_SHELL speedup,
Stepan Kasal <=
- Re: _AS_DETECT_BETTER_SHELL speedup, Stepan Kasal, 2005/01/31
- Re: _AS_DETECT_BETTER_SHELL speedup, Noah Misch, 2005/01/31
- Re: _AS_DETECT_BETTER_SHELL speedup, Ralf Wildenhues, 2005/01/29
- Re: _AS_DETECT_BETTER_SHELL speedup, Paul Eggert, 2005/01/28
- Re: _AS_DETECT_BETTER_SHELL speedup, Stepan Kasal, 2005/01/29