Re: How to best store references to disk items, not using paths?
Re: How to best store references to disk items, not using paths?
- Subject: Re: How to best store references to disk items, not using paths?
- From: Thomas Tempelmann <email@hidden>
- Date: Fri, 13 Mar 2009 13:35:25 +0100
On Thu, Mar 12, 2009 at 23:03, Chris Suter <email@hidden> wrote:
>
> It looks like you can use PBCatalogSearchSync instead which isn't
> deprecated. You want to be searching for the node ID. Remember, the
> node ID doesn't uniquely identify a file, you need to also record
> which file system the file is on.
The way the Catalog search is usually implement, this won't be
efficient at all, though:
The Catalog Search on a HFS(+) volume is working like this: It
performs a flat search over the catalog file, looking at every entry
and matching it up with the search criteria.
This would mean that if I'd look for 100s of file IDs successively,
I'd end up with 100s of catalog searches, each taking several seconds.
To make a FileID lookup an instant response, the cat search code would
have to special-case this single ID lookup, and I doubt that any FS
implementation does do that.
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden