[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible eval builtin speedup?
From: |
Chris F.A. Johnson |
Subject: |
Re: Possible eval builtin speedup? |
Date: |
Wed, 05 Mar 2008 19:38:28 +0000 |
User-agent: |
slrn/0.9.8.1 (Linux) |
On 2008-03-02, Nicolas Bonifas wrote:
> Hi,
> Bash starts slowly on my 600 Mhz computer (.62 seconds). I wanted to
> understand why, and here is what I found:
>
> $ time eval `dircolors`
>
> real 0m0.325s
> user 0m0.316s
> sys 0m0.004s
>
> I wanted to know what is so slow in the previous command, so here is
> another test:
>
> $ time (dircolors > dircolors_output && sh ./dircolors_output)
>
> real 0m0.007s
> user 0m0.004s
> sys 0m0.004s
>
>
> I don't know much about bash internals, but there is probably room for
> a huge performance improvement in speeding up the eval builtin.
> What do you think about it? Would it be a difficult task?
It is more likely to be the command substitution that is slow.
--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.
- Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/02
- Re: Possible eval builtin speedup?,
Chris F.A. Johnson <=
- Re: Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/06
- Message not available
- Re: Possible eval builtin speedup?, Jan Schampera, 2008/03/07
- Re: Possible eval builtin speedup?, Nicolas Bonifas, 2008/03/07
- Message not available
- Re: Possible eval builtin speedup?, Jan Schampera, 2008/03/07
- Re: Possible eval builtin speedup?, Nicolas, 2008/03/10
- Re: Possible eval builtin speedup?, Chet Ramey, 2008/03/10
- Re: Possible eval builtin speedup?, Nicolas, 2008/03/10
- Re: Possible eval builtin speedup?, Andreas Schwab, 2008/03/10
- Re: Possible eval builtin speedup?, Chet Ramey, 2008/03/10
- Re: Possible eval builtin speedup?, Nicolas, 2008/03/12