From: Greg Klanderman <gak@klanderman.net>
To: zsh-workers@zsh.org
Subject: Re: zsh hangs loading init files
Date: Fri, 06 Jan 2012 20:36:55 -0500 [thread overview]
Message-ID: <m3hb08i98o.fsf@klanderman.net> (raw)
In-Reply-To: <CAHYJk3T+_Ym1pSLL-Koz=xjifmpWrJEUB5kJO2bWEgBnPPn8Fw@mail.gmail.com> (Mikael Magnusson's message of "Sat, 7 Jan 2012 02:28:44 +0100")
>>>>> On January 6, 2012 Mikael Magnusson <mikachu@gmail.com> wrote:
> I suspect this is the one, http://www.zsh.org/mla/users/2009/msg00786.html
> +2009-09-21 Peter Stephenson <pws@csr.com>
> +
> + * users/14411: Src/hashtable.c: only hash stat-able executable
> + regular files in the command table.
> +
You probably haven't gotten my followup to my followup yet.
Adding "setopt nohashdirs" gets me past the $(uname -s) quickly, but
then later, accessing $commands[foo] still causes it to go stat()
every file under every element of my path. Which is causing the 10-30
second hang.
Greg
next prev parent reply other threads:[~2012-01-07 1:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-05 16:44 Greg Klanderman
2012-01-05 19:35 ` Dan Nelson
2012-01-07 1:12 ` Greg Klanderman
2012-01-07 1:27 ` Greg Klanderman
2012-01-07 1:28 ` Mikael Magnusson
2012-01-07 1:36 ` Greg Klanderman [this message]
2012-01-07 1:56 ` Mikael Magnusson
2012-01-07 7:17 ` Bart Schaefer
2012-01-07 20:17 ` Peter Stephenson
2012-01-09 20:19 ` Greg Klanderman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3hb08i98o.fsf@klanderman.net \
--to=gak@klanderman.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).