On 3/13/07, Tassilo Horn <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I reported this on IRC some time ago, but didn't have the time to debug
> it any further. So here I go again.

Thanks for investigating further.

>
> The problem is that completion of commands with finding descriptions is
> very slow on my (reasonably fast) system.
>
> Here's an example:
>
> ,----
> | [EMAIL PROTECTED] /u/l/p/a/org-mode> em<TAB>
> | emacs                (GNU project Emacs)
> | emacs                (GNU project Emacs)
> | emacs-22.0.95        (Executable, 5.4MB)
> | emacs-tags             (Executable, 62B)
> | emacs.emacs-22.0.95  (Executable, 5.4MB)
> | emacsclient  (Tells a running Emacs to visit a file)
> | emacsclient-mail                  (Executable, 556B)
> | emacsclient-root                  (Executable, 141B)
> | emacsclient.emacs-22.0.95         (Executable, 16kB)
> | emaint  (Updates environment settings automatically)
> | emerald                (The Emerald Windows Decorator)
> | emerald-theme-manager      (The Emerald Theme Manager)
> | emerge  (Command-line interface to the Portage system)
> | emerge-webrsync               (Executable link, 4.7kB)
> `----
>
> To gather this completions it takes about 25 seconds in which grepping
> the whatis database (apropos) and awk utilize the cpu for nearly 100%. I
> guess that's partly due to my rather huge whatis database (1.5 MB),
> which is Tcl/Tk's fault, but `apropos em' is much faster (~8 seconds)
> when executed on console.
>
> The algorithm for finding command descriptions runs `apropos em' several
> times, which is a bad idea and shouldn't be needed. It would be nice if
> it could be optimized so that finding descriptions is reasonable fast.

It should only run once.

How long does '__fish_describe_command em' take?

>
> Maybe this is a good idea: Bind TAB to complete without descriptions
> like it's done now when there's only one character of the command. And
> bind Meta-TAB to complete with descriptions. (Or do it the other way
> round. The main-thing is that a user has the possibility to complete
> without descriptions with one keystroke.)
>
> I really like the idea of exploring the commands of the system with a
> single keystroke, but if you know what you're doing the slowdown isn't
> worth it.

Right. 25 seconds to get completions makes them useless. Even
non-experienced users are better of getting completions without
descriptions in under a second.

>
> Another weird thing is that emacs is shown two times in the completion
> list. `$ e<TAB>' which omitts the descriptions lists it only once.

Very strange indeed. I'll recheck the duplicate removal code.

>
> Bye,
> Tassilo
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>


-- 
Axel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to