zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: hashcmd path
Date: Mon, 13 Mar 2006 20:00:07 -0800	[thread overview]
Message-ID: <060313200008.ZM17898@torch.brasslantern.com> (raw)
In-Reply-To: <20060314033129.GA9783@scowler.net>

On Mar 13, 10:31pm, Clint Adams wrote:
}
} What is the purpose of calling hashcmd() in execcmd() with the value of
} pathchecked rather than path?

The intent -- whether it still works I'm not sure -- is to hash as much
of the path as has been searched, and then the next time a command is
not found in the part already searched, hash some more.  The hash table
thus never contains more than necessary.

This is entirely irrelevant in the face of completion, which always
forces the entire path to be hashed up front, but it holds down memory
usage of non-interactive shells.


  reply	other threads:[~2006-03-14  3:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-14  3:31 Clint Adams
2006-03-14  4:00 ` Bart Schaefer [this message]
2006-03-14 17:56   ` Clint Adams

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=060313200008.ZM17898@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).