On 3/17/07, Tassilo Horn <[EMAIL PROTECTED]> wrote: > "Axel Liljencrantz" > <[EMAIL PROTECTED]> writes: > > Hi Axel, > > >> I tried to monitor the processes (grep, apropos, awk) with htop, and > >> they change PIDs about 18 times. So /usr/share/man/whatis is grepped > >> at least 18 times -- no wonder that it takes that long. > > > > Ha! Very interesting. I can reproduce this behaviour. It is obviously > > wrong. > > Does it happen on all systems or is it a special setup which triggers > it? > > > This should take down the completion time to a still completely > > unacceptable 5 seconds on your system. > > ;-)
Bug located and fixed. The __fish_describe_command function was called once for every element of PATH. Fix is in the darcs tree. Another question: How long does 'apropos em >/dev/null' take? If that takes significantly less than five seconds then the awk program could probably do with an update. > > The only way to work around this in a good way is to abort the > > description lookup if it takes too much time. Probably something like > > 0.5 seconds. > > That would be very strict. I think 1 or 2 seconds would be acceptable if > one had a keybinding for completion without descriptions. It might be acceptable with one second, but the exact number is really not that important. In 99.9 % of all cases it will either take a completely reasonable amount of time, like 0.01 seconds, or something completely unaccaptable, like 5 seconds. > > > For now, you can work around this bug using the following commands: > > > > function __fish_describe_command > > end > > save_function __fish_describe_command > > Ah, what a boon! > > Regards, > Tassilo > -- > A child of five could understand this! Fetch me a child of five! -- 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
