Pavol, Larry,
My guess (yeah, I know) would be the "stat" call. Find without any file
type-specific constraints like "-type d" or "-type f" only has to read
directory entries. Nor do constraints such as "-name nameGlob" or even
"-regex nameRegex" necessitate a stat call on every directory entr
At 11:08 PM 3/23/2002, Pavol Juhas wrote:
>Hello,
>
>I am using find 4.1 under Cygwin 1.3.10 / WinXP. I have observed that
> find . -type d
>is about 3 times slower than find . and about 100 times slower than
> cmd.exe /C dir /B/S/AD
>
>$ time find . -type d > /dev/null
> 0.39s user 1
2 matches
Mail list logo