Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

huge number of stats makes completion SLOOOW



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.



Messages sorted by: Reverse Date, Date, Thread, Author