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

David Paleino dapal at debian.org
Sat Apr 2 14:49:26 UTC 2011


On Sat, 02 Apr 2011 17:40:31 +0300, Ville Skyttä wrote:

> On 04/02/2011 04:44 PM, Martin Lundberg wrote:
> 
> > source /usr/local/etc/bash_completion
> > 
> > The problems is that it makes the loading of new terminal windows very
> > slow. If I remove the line the loading is instant. When I add the line
> > the I have to wait maybe 1-2 second for the prompt to show. I know
> > it's not much but it's enough to be annoying.
> 
> Yes, loading the completions takes time, but there are some
> opportunities for improving this in future bash-completion releases.
> 1-2 seconds is however much more than what I'm accustomed to.
> 
> $ time . ~/cvs/bash-completion/bash_completion
> real	0m0.539s
> user	0m0.403s
> sys	0m0.097s
> 
> (This is an Athlon64 3200+ Linux box with an SSD disk.)

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

Second (and sequent) load(s):

real	0m1.076s
user	0m0.716s
sys	0m0.104s

But I guess I'm really patient :)

-- 
 . ''`.   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/20110402/f2388fe2/attachment.pgp>


More information about the Bash-completion-devel mailing list