bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excessive calls to stat in ftsfind


From: James Youngman
Subject: Re: Excessive calls to stat in ftsfind
Date: Mon, 1 Dec 2008 22:31:47 +0000

On Wed, Jul 30, 2008 at 4:42 PM, Andreas Schwab <address@hidden> wrote:
> When using fts there are too many calls to stat compared to oldfind.
> One problem is the use of an uninitialized variable in
> ftsfind.c:consider_visiting, see the patch below for a fix.  Another
> problem is that with fts there is no way to distinguish state.have_stat
> and state.have_type, ie. fts_read cannot report back the type of the
> file without a full stat.  That means that a command like "find -type d"
> will have to stat _every_ file, whereas without fts, but with working
> d_type support it would only have to stat the directories.

Recent changes to gnulib and find have changed this situation, I
believe.   Could you retest this (from the CVS trunk code for
findutils) please?

Thanks,
James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]