[Bash-completion-devel] After adding bash-completion to .bashrc loading prompt is slow

David Paleino dapal at debian.org
Sun Apr 3 12:33:30 UTC 2011


On Sun, 03 Apr 2011 15:20:21 +0300, Ville Skyttä wrote:

> 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 usually hibernate my system with no apps open (apart from wicd and a
terminal), so from that terminal I just prepended "time" to ~/.bashrc, and
fired up another terminal.

It's a Celeron 1,73GHz, bash-completion from git, 242 files in
bash_completion.d, Debian sid.

> 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

I'll try these ASAP -- with a clean reboot.

Kindly,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20110403/9adde389/attachment.pgp>


More information about the Bash-completion-devel mailing list