This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] improve performance of stat() operations (e.g. ls -lR )


On Sun, May 26, 2002 at 10:23:39PM -0400, Chris Faylor wrote:
> You can get nearly all of the information that you need from
> FindFirstFile.  Unfortunately, GetFileInformationByHandle() seems to be
> the only available function which returns the hard link count of a file.

What about taking the FS into account here?  We could perhaps speedup
stat() for FAT/FAT32 since the hard link count is always 1 for files
then.  We could completely skip the open() call if the file isn't
already open (as in fstat(2)).  The FS info is already available from
path_conv::check().

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]