zsh-users
 help / color / mirror / code / Atom feed
* huge number of stats makes completion SLOOOW
@ 2000-06-07 10:30 Jesper K. Pedersen
  2000-06-07 16:19 ` Pascal Byrne
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper K. Pedersen @ 2000-06-07 10:30 UTC (permalink / raw)
  To: zsh-users

Hi.

When I do the following:
  cd sp<TAB>

It takes most of ten seconds before it completes for me. I tried to do an
strace on it, and I saw the following:

[pid 22114] access("/home/blackie/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/usr/X11R6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/gnupg-1.0.1/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/gimp-1.1.15/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/gtk+-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/glib-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/ssh-2.0.13/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/photopc-3.01/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/gtimer-1.1.4/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/Acrobat4/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/yard-1.17/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/usr/openwin/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/cdsession/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
[pid 22114] access("/opt/mosml/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
<SNIP>

My path is quite long, so there is a huge number of directories it must go
through.

Is there an option I can set, which makes my cd command faster?

Kind Regards Jesper.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: huge number of stats makes completion SLOOOW
  2000-06-07 10:30 huge number of stats makes completion SLOOOW Jesper K. Pedersen
@ 2000-06-07 16:19 ` Pascal Byrne
  0 siblings, 0 replies; 2+ messages in thread
From: Pascal Byrne @ 2000-06-07 16:19 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

Why not put /usr/bin at the front of your path?


"Jesper K. Pedersen" wrote:

> Hi.
>
> When I do the following:
>   cd sp<TAB>
>
> It takes most of ten seconds before it completes for me. I tried to do an
> strace on it, and I saw the following:
>
> [pid 22114] access("/home/blackie/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/usr/X11R6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/gnupg-1.0.1/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/gimp-1.1.15/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/gtk+-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/glib-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/ssh-2.0.13/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/photopc-3.01/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/gtimer-1.1.4/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/Acrobat4/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/yard-1.17/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/usr/openwin/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/cdsession/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> [pid 22114] access("/opt/mosml/bin/cd", X_OK) = -1 ENOENT (No such file or directory)
> <SNIP>
>
> My path is quite long, so there is a huge number of directories it must go
> through.
>
> Is there an option I can set, which makes my cd command faster?
>
> Kind Regards Jesper.

[-- Attachment #2: Card for Pascal Byrne --]
[-- Type: text/x-vcard, Size: 141 bytes --]

begin:vcard 
n:Byrne;Pascal
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:pbyrne@ie.oracle.com
title:WPTG Engineering
end:vcard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-07 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-07 10:30 huge number of stats makes completion SLOOOW Jesper K. Pedersen
2000-06-07 16:19 ` Pascal Byrne

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).