Re: fts: make find *much* faster on dirent.d_type-challenged FS

2009-02-16 Thread Simon Josefsson
Jim Meyering writes: > Jim Meyering wrote: > ... >> Here's an incremental, then the adjusted full patch. >> >> BTW, I test this with coreutils by running chcon -R[*] on a directory >> containing 1000 files. With the patch, strace -c reports *1* >> calls to newfstatat, but without, it reports 10

Re: fts: make find *much* faster on dirent.d_type-challenged FS

2009-02-13 Thread Simon Josefsson
Jim Meyering writes: > I vaguely recall feeling a slight twinge as I did that, > but since coreutils proper has been using decl-after-stmt, > for so long, I let it slide. How does that work? Do most compilers out there really support decl-after-stmt (not likely?!), or do you offer a patch for u