From: cloder AT ccs DOT neu DOT edu (Chad Loder) Subject: Re: ls -p very slow 3 Nov 1997 20:32:41 -0800 Message-ID: Reply-To: cloder AT acm DOT org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: gnu-win32 AT cygnus DOT com 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---- > -earnie_boyd AT hotmail DOT com- > ------ooo0O--O0ooo------- > > >Date: Mon, 3 Nov 1997 09:47:07 -0500 (EST) > >From: Chad Loder > >Reply-To: cloder AT acm DOT org > >To: gnu-win32 AT cygnus DOT com > >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: cloder AT acm DOT org | > >| Home Page: http://www.ccs.neu.edu/home/cloder | > >---------------------------------------------------- > > > > > > > >- > >For help on using this list (especially unsubscribing), send a message > to > >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > > > > > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > ---------------------------------------------------- | Chad Loder - Somerville, MA, USA | | EMail: cloder AT acm DOT org | | Home Page: http://www.ccs.neu.edu/home/cloder | ---------------------------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".