• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to discover the volume id to use in a File Reference URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to discover the volume id to use in a File Reference URL


  • Subject: Re: How to discover the volume id to use in a File Reference URL
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 24 Sep 2013 17:48:54 -0500

On Sep 24, 2013, at 5:05 PM, Ken Thomases <email@hidden> wrote:

>> Because if you had to do an entire drive search for every ancestor, that would quite likely take a *long* time to complete.
>
> I don't think that searchfs() _necessarily_ does a true full-drive search.  Given a unique file ID (ATTR_CMN_FILEID) in the search criteria, the file system implementation could very well return in constant time.  As I said earlier, logically it could be as fast as resolving a file reference URL to a file path URL, since that's what that amounts to.
>
> That said, I haven't investigated either by reading the source or by running tests.

In the extremely informal, non-scientific test I just ran, searching by ATTR_CMN_OBJID took approximately 10 seconds, and searching by ATTR_CMN_FILEID took about 15.6 seconds. I think it goes without saying that spending 10-15 seconds per ancestor in the file system hierarchy, per search result, is not a viable solution.

Charles

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to discover the volume id to use in a File Reference URL
      • From: Ben Staveley-Taylor <email@hidden>
References: 
 >How to discover the volume id to use in a File Reference URL (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ken Thomases <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ken Thomases <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Charles Srstka <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ken Thomases <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Charles Srstka <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: How to discover the volume id to use in a File Reference URL
  • Next by Date: Re: Casting objects in NSCountedSet
  • Previous by thread: Re: How to discover the volume id to use in a File Reference URL
  • Next by thread: Re: How to discover the volume id to use in a File Reference URL
  • Index(es):
    • Date
    • Thread