bash_completion is too slow because it does strange things: it parses
itself because it wants to emulate the behavior of "-o plusdirs".
See
https://bugzilla.redhat.com/show_bug.cgi?id=479936
for a preliminary patch.
Thanks for pointing this out. This would indeed be a significant
improvement!
Nicolas writes:
> Hello,
>
> I ran some benchmarks of Bash 4.0-rc1. It is quite impressive! Here are the
> results.
> My computer is a Pentium M (running at 600 MHz for the test), running Linux
> 2.6.26 with libc6 version 2.7 and Debian bash-completion version 20080705.
> The figur
> Bash versions other than `release' are built with extensive extra arena
> and allocation checking enabled in the bash malloc.
Thanks for pointing this out.
Here are the new results:
Bash 4.0, with bash malloc:
* eval `dircolors`: 0.138s
* source /etc/bash_completion: 0.735s
Bash 4.0, withou
Nicolas wrote:
> Hello,
>
> I ran some benchmarks of Bash 4.0-rc1. It is quite impressive! Here are the
> results.
Thanks.
> Bash 4.0, with bash malloc:
> * eval `dircolors`: 0.385s
> * source /etc/bash_completion: 41.651s (around 93% of the time is spent in
> function find_entry of lib/malloc
Hello,
I ran some benchmarks of Bash 4.0-rc1. It is quite impressive! Here are the
results.
My computer is a Pentium M (running at 600 MHz for the test), running Linux
2.6.26 with libc6 version 2.7 and Debian bash-completion version 20080705.
The figures are averages over 100 tests.
Bash 3.2, wit
Chet Ramey wrote:
Matthew Woehlke wrote:
Chet Ramey wrote:
f. Changed behavior so the shell now acts as if it received an interrupt
when a pipeline is killed by SIGINT while executing a list.
Does this mean that
$ sleep 60 ; do-something
...will no longer run 'do-something' when ctrl-C'd?
Matthew Woehlke wrote:
> Chet Ramey wrote:
>> f. Changed behavior so the shell now acts as if it received an interrupt
>> when a pipeline is killed by SIGINT while executing a list.
>
> Does this mean that
> $ sleep 60 ; do-something
> ...will no longer run 'do-something' when ctrl-C'd?
Yes.
Chet Ramey wrote:
f. Changed behavior so the shell now acts as if it received an interrupt
when a pipeline is killed by SIGINT while executing a list.
Does this mean that
$ sleep 60 ; do-something
...will no longer run 'do-something' when ctrl-C'd?
--
Matthew
Please do not quote my e-mail
The first public release candidate of bash-4.0 is now available with the URL
ftp://ftp.cwru.edu/pub/bash/bash-4.0-rc1.tar.gz
This tar file does not include the formatted documentation (you
should be able to generate it yourself).
This release fixes the remaining serious bugs in the bash version