[Bash-completion-devel] After adding bash-completion to .bashrc loading prompt is slow
Ville Skyttä
ville.skytta at iki.fi
Sun Apr 3 12:20:21 UTC 2011
On 04/02/2011 05:49 PM, David Paleino wrote:
> I guess it also depends whether you have it already loaded or not.
>
> On my system, at first load:
>
> real 0m5.677s
> user 0m0.736s
> sys 0m0.192s
Wow, I don't think I've ever seen anything close to this. What did you
do in order to get these "first load" numbers, and what's this box?
I tried with the slowest box I have easily access to (which has
bash-completion 1.2 with 52 files in /etc/bash_completion.d, bash
3.2.25, CentOS 5.5, Athlon XP 2800+ and a PATA disk, no load at the
moment) by making sure bash completion was not loaded, then dropped all
caches [0], and:
$ hash -r
$ time . /etc/bash_completion
real 0m1.616s
user 0m0.182s
sys 0m0.040s
[0] As root: sync ; echo 3 > /proc/sys/vm/drop_caches
More information about the Bash-completion-devel
mailing list