Article View: comp.unix.shell
Article #1375Why is find so slow (Re: Why use find?)
From: Felix Lee
Date: Wed, 10 Oct 1990 00:44
Date: Wed, 10 Oct 1990 00:44
12 lines
1145 bytes
1145 bytes
>I squirreled away a little program called 'descend' that does the >moral equivalent of a 'find . -print', except rather fast. "descend" is fast because it recognizes leaf directories and avoids stat()ing the files in that directory. This is usually a big win, since most files tend to be in leaf directories. "find" can't do this in general, since most of its predicates require stat()ing each file, but it wouldn't be too hard to add lazy stat()ing to find. And it may even be worth it. -- Felix Lee flee@cs.psu.edu
Technical Details
Message-ID:
<F6.rhxm2@cs.psu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!newsReferences:
<1990Sep30.182331.14363@iconsys.uucp> <941@hls0.hls.oz> <1990Oct5.145825.9454@diku.dk> <1990Oct6.055108.14853@smsc.sony.com> <EMV.90Oct6135604@urania.math.lsa.umich.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!news From: flee@guardian.cs.psu.edu (Felix Lee) Newsgroups: comp.unix.shell,comp.unix.internals Subject: Why is find so slow (Re: Why use find?) Message-ID: <F6.rhxm2@cs.psu.edu> Date: 10 Oct 90 00:44:54 GMT References: <1990Sep30.182331.14363@iconsys.uucp> <941@hls0.hls.oz> <1990Oct5.145825.9454@diku.dk> <1990Oct6.055108.14853@smsc.sony.com> <EMV.90Oct6135604@urania.math.lsa.umich.edu> Sender: news@cs.psu.edu (Usenet) Organization: Penn State Computer Science Lines: 12 Nntp-Posting-Host: guardian.cs.psu.edu