Re: stat very inefficient
From: Ulrich Drepper
Date: Wed Jul 28 2004 - 20:15:15 EST
David S. Miller wrote:
> "find . -type f" is probably the most often run command somewhere
> in a shell pipeline [...]
I hope you're testing this on a recent system with a good find
implementation. Nowadays find calls stat for this command line only for
directories and symlinks. Those types along with normal files are all
known to find through the readdir calls (i.e., the d_type field).
Check your strace output to see whether your system is recent enough.
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/