[Bash-completion-devel] [Bug#764800]: Re: speed up bash completion init by > 30%...

Ville Skyttä ville.skytta at iki.fi
Tue Oct 14 18:02:20 UTC 2014


On Tue, Oct 14, 2014 at 8:35 PM, Linda A. Walsh <bash at tlinx.org> wrote:
> Ville Skyttä wrote:--
>>
>>
>> BTW that's not what the have() function looks like in recent
>> bash-completion. I suppose you're using an old version.
>>
>>
>> http://anonscm.debian.org/cgit/bash-completion/bash-completion.git/tree/bash_completion#n125
> ----
>    Thanks for the update -- but wouldn't that make this performance
> issue worse?

No, because the time taken by have() within bash-completion is already
0, and we want to don't want to encourage anyone to use it any more by
making it faster, we want it to go away. And while it's there, we do
want to share code in have() and _have() (and the latter still does
have a purpose).

But seriously, in case it was not clear already, I am personally not
going to make the suggested changes. And I have a hunch that
something's probably not right in your bash-completion 2.1 setup --
have() shouldn't be that much of a performance issue unless you have
lots of 3rd party completions that use it (which I respectfully doubt)
and the function definition you posted isn't like that in 2.1...



More information about the Bash-completion-devel mailing list