🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1473

Re: Why is find so slow (Re: Why use find?)

#1473
From: David W. Tamkin
Date: Thu, 18 Oct 1990 21:37
14 lines
1317 bytes
mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) wrote in
<638@npdiss1.StPaul.NCR.COM>:

| Maybe I'm dense,  but how does find know whether a file is a directory
| (and should be descended) or another type of file without stat()ing the
| file?

I think the idea is that after find does stat() the file and sees that it is
a directory with only two links, it shouldn't bother stat()ting the entries
in that directory because none of them will be subdirectories.  There will
be only one more level to descend.

David Tamkin  Box 7002  Des Plaines IL  60018-7002  708 518 6769  312 693 0591
MCI Mail: 426-1818  GEnie: D.W.TAMKIN  CIS: 73720,1570   dattier@ddsw1.mcs.com
Technical Details
Message-ID: <1990Oct18.213733.17330@ddsw1.MCS.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!gatech!rutgers!mcdchg!ddsw1!dattier
References: <1990Sep30.182331.14363@iconsys.uucp> <941@hls0.hls.oz> <F6.rhxm2@cs.psu.edu> <26919@mimsy.umd.edu> <638@npdiss1.StPaul.NCR.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!gatech!rutgers!mcdchg!ddsw1!dattier
From: dattier@ddsw1.MCS.COM (David W. Tamkin)
Newsgroups: comp.unix.shell,comp.unix.internals
Subject: Re: Why is find so slow (Re: Why use find?)
Message-ID: <1990Oct18.213733.17330@ddsw1.MCS.COM>
Date: 18 Oct 90 21:37:33 GMT
References: <1990Sep30.182331.14363@iconsys.uucp> <941@hls0.hls.oz> <F6.rhxm2@cs.psu.edu> <26919@mimsy.umd.edu> <638@npdiss1.StPaul.NCR.COM>
Reply-To: dattier@ddsw1.MCS.COM (David W. Tamkin)
Organization: Contributor Account at ddsw1, Wheeling, Illinois
Lines: 14