From: Scott Merrilees <Sm@cerberus.bhpese.oz.au>
To: rc@archone.tamu.edu (The rc Mailing List)
Subject: Re: path caching
Date: Mon, 10 Feb 1992 07:34:46 -0600 [thread overview]
Message-ID: <199202100234.AA26625@cerberus.bhpese.oz.au> (raw)
In-Reply-To: <9202091855.AA05991@ibmpcug.co.uk>; from "Matthew Farwell" at Feb 9, 92 12:55 pm
> Why can't you do something like:
> This is untested, since I don't have symbolic links.
> cache = $home/.cache
> fn rehash {
> for (i in $path) {
> @{ cd $i
> for (j in *) {
> if (! test -x $cache/$j) ln -s $i/$j $cache/$j
> }
> }
> }
> }
Possible, but I wanted to keep the size of the cache down, so
directory lookups are quicker. If I did the above, I would have one
directory with approx 1800 entries. I would also have name clashes
with system v vs bsd vs gnu stuff. Still it may be worth testing.
Sm
--
Scott Merrilees, BHP Information Technology, Newcastle, Australia
Internet: Sm@bhpese.oz.au Phone: +61 49 40 2132 Fax: ... 2165
next prev parent reply other threads:[~1992-02-10 2:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-02-08 22:01 Scott Merrilees
1992-02-08 14:32 ` John Mackin
1992-02-08 17:19 ` Chris Siebenmann
1992-02-09 14:06 ` Scott Merrilees
1992-02-09 18:55 ` Matthew Farwell
1992-02-10 13:34 ` Scott Merrilees [this message]
1992-02-12 17:32 ` Matthew Farwell
-- strict thread matches above, loose matches on Subject: below --
1992-02-08 13:31 DaviD W. Sanderson
1992-02-09 14:15 ` Scott Merrilees
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=199202100234.AA26625@cerberus.bhpese.oz.au \
--to=sm@cerberus.bhpese.oz.au \
--cc=rc@archone.tamu.edu \
/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.
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).