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

Corinna Vinschen cygwin-patches@cygwin.com
Mon May 27 05:24:00 GMT 2002


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.



More information about the Cygwin-patches mailing list