Subject: Re: ls -p very slow
From: [email-masked] (Chad Loder)

3 Nov 1997 20:32:41 -0800
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: [email-masked]

That's pretty inefficient...sounds like a problem with how link
information is stored in general. I know it's not easy to do this kind of
thing with Microsoft's file systems, but maybe there is a way to speed
this and related procedures up.

A couple of ideas...one of which has already been implemented by someone
(see about 5 messages back in this list), I think?

1) Keep it simple, stupid - only scan files with the System attribute set,
make sure that all links get this attribute set when created.

2) Store a binary table of links somewhere on disk, scan thru that for
links corresponding to what directory you're in. Or just make a hidden
file in each subdirectory which contains link info for all the files in
that subdirectory...that way you don't have to (*gasp*) open and close all
the files every time you want to process which are links (e.g., ls -p or
similar). Maybe this is too complicated...

-chad

On Mon, 3 Nov 1997, Earnie Boyd wrote:

> It's true.  The link information is stored as text within the link file 
> itself.
> 
> -        \\||//
> ---o0O0--Earnie--0O0o----
> [email-masked]
> ------ooo0O--O0ooo-------
> 
> >Date: Mon, 3 Nov 1997 09:47:07 -0500 (EST)
> >From: Chad Loder <[email-masked]>
> >Reply-To: [email-masked]
> >To: [email-masked]
> >Subject: ls -p very slow
> >
> >Hi all...gnu-win32 "ls -p" is extremely slow...does it have to open and
> >scan each file for some bytes which identify it as a symbolic link? 
> That's
> >awful, if true.
> >
> >-chad
> >
> >----------------------------------------------------
> >| Chad Loder - Somerville, MA, USA                 |
> >| EMail:     [email-masked]                        |
> >| Home Page: http://www.ccs.neu.edu/home/cloder    |
> >----------------------------------------------------
> >
> >
> >
> >-
> >For help on using this list (especially unsubscribing), send a message 
> to
> >"[email-masked]" with one line of text: "help".
> >
> 
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 

----------------------------------------------------
| Chad Loder - Somerville, MA, USA                 |
| EMail:     [email-masked]                        |
| Home Page: http://www.ccs.neu.edu/home/cloder    |
----------------------------------------------------

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".