-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[dropping cygwin-patches, since posts are closed to non-subscribers, and
adding bug-findutils and bug-gnulib.  Christian is working on a patch that
lets cygwin do initial support of dirent.d_type]

According to Christian Franke on 11/27/2008 2:41 PM:
> 
> PS: find is not as smart as expected: 'find /path -type d' calls lstat()
> for each entry, even if d_type != DT_UNKNOWN.
> So 'find /path' is 2-3 times faster than 'find /path -type d'.

This seems like it might be a bug in gnulib's fts implementation.  How
does 'oldfind /path -type d' perform?  oldfind has the advantage of not
using fts, so if it performs better, then there is a hole where we need to
improve gnulib's fts to make directory-only or non-directory-only
traversals use d_type for optimization.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkvJNgACgkQ84KuGfSFAYBCFwCgtMrYcQtNVHecyzFXh7iMjIhM
PAIAn3gN5BuAThKa9cUrEc2KXac3mN8r
=QG08
-----END PGP SIGNATURE-----


Reply via email to