On Sun, 15 Aug 2004 19:00:41 -0500 <didn't post to the list> wrote:
> In that case, you may want to try a recursive "ls". But for the same
> format as "find", try using "locate" with "updatedb" on a cron job.
Thanks for the hints. I did some benchmarks:
find / >/tmp/find.dirtree:
3:44 (1st run)
3:47 (repeated run)
updatedb -u --output=/tmp/updatedb.dirtree:
8:51
8:47
ls -R / >/tmp/ls.dirtree:
6:16
6:55
With less than 4 minutes find is by far the fastest of these
methods.
Why am I not using updatedb in a cron job? Because
1. the data is needed for a backup and thus needs to be current.
2. updatedb is annoying when it runs in the background and I have some
actual work to do (the system is not running at night, so a nightly
cron job is not an option).
3. I usually don't need locate. If I need to quickly find something
that's not in my home directory, then often I can find it by greping
the package database (Slackware).
So, I guess I'll stick with find. I was hoping for a tool, though, that
is optimized for ReiserFS.
Felix
PS: To contact me off list don't reply but send mail to "felix.klee" at
the domain "inka.de". Otherwise your email to me might get automatically
deleted!