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

Linda A. Walsh bash at tlinx.org
Tue Oct 14 17:35:44 UTC 2014


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?
I.e.
let W = work and "F" = overhead of func call.
going from  "func{W}" -> "W" saves 1/3rd of the time,
so "F" = 50% of the execution time of 'W'.


Going to F(F(W)), would be likely to mean 2 units of F
overhead for 2 units work.  I.e. going to the
inline-alias would save 50% execution time.


>   



More information about the Bash-completion-devel mailing list