Re: slow find . -type d

2002-03-23 Thread Randall R Schulz
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

Re: slow find . -type d

2002-03-23 Thread Larry Hall (RFK Partners, Inc)
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