[Top][All Lists]

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

Possible eval builtin speedup?

From: Nicolas Bonifas
Subject: Possible eval builtin speedup?
Date: Sun, 2 Mar 2008 23:00:33 +0100

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?


reply via email to

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