From: Josh Huber Date: 2002-06-18T03:35:26+09:00 Subject: Re: Are Unix tools just slow? (OT) Chris Gehlker writes: > Guys, I *said* it was HFS+. The file system is a B*-tree in > memory. And the code doesn't just walk it, it searches it, recording > the path for files which match the search criteria. In this case the > search criterion is simply whether the user running the search has > execute permission for the file, either because she owns it and the > owner execute bit is set or because she is a member of the owner's > group and the group execute bit is set or because anyone can execute > the file. Right, but find does not know/care what the filesystem type is -- using the regular user-mode file i/o interface isn't going to give you access to the B-trees. You could perhaps write an extention to find which uses this API, but it would be MacOS specific. (or rather, filesystem specific) It's not that the tools are slow, it's that find does not use any sort of API which allows for direct access to the filesystem information. ttyl, -- Josh Huber