• 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: Fast hash of NSData?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast hash of NSData?


  • Subject: Re: Fast hash of NSData?
  • From: "Gary L. Wade" <email@hidden>
  • Date: Sat, 30 Nov 2013 10:42:55 -0800
  • Thread-topic: Fast hash of NSData?

Getting the attributes of a file is a very fast operation provided you use
the right calls; all of that information is in its catalog and should
require at most one block read and at least a lookup in an OS-related
cache.  If you are accessing the file system across a network (I doubt it
from your earlier info in which you said the user is dropping an image on
your app or document), this could be a bit slower, but using the right API
or info on a protocol stream should give you what you're needing.  You
might be looking at things from too high a level; consider a much
lower-level solution if appropriate.

FYI, I've worked on a few backup and sync apps/processes and am pretty
comfortable with file system bottlenecks both local and remote.
--
Gary L. Wade
http://www.garywade.com/


On 11/30/2013 2:47 AM, "Graham Cox" <email@hidden> wrote:

>It¹s also likely to be slow in itself - grabbing this sort of data from
>the file system requires hitting the disk, possibly multiple times.



_______________________________________________

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


References: 
 >Re: Fast hash of NSData? (From: "Gary L. Wade" <email@hidden>)
 >Re: Fast hash of NSData? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Download fileSystem data
  • Next by Date: Re: NSShadowAttributeName doesn't scale
  • Previous by thread: Re: Fast hash of NSData?
  • Next by thread: ToolTips for Matrix Cells
  • Index(es):
    • Date
    • Thread