• 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: Graham Cox <email@hidden>
  • Date: Mon, 02 Dec 2013 15:44:18 +0100

On 2 Dec 2013, at 3:36 pm, ChanMaxthon <email@hidden> wrote:

> How about this: treat the data as an array of 64-bit integers (zero-padded) and XOR them together? That will be really fast and you will be able to asm-optimize it.


There are plenty of fast hash algorithms that are proven to work.

As I learned early on, inventing your own without a lot of thought rarely pans out well. The issue now isn’t how to hash, it’s whether hashing is considered a safe enough approach for the use-case.

—Graham


_______________________________________________

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: Fast hash of NSData?
      • From: Maxthon Chan <email@hidden>
References: 
 >Re: Fast hash of NSData? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Fast hash of NSData? (From: ChanMaxthon <email@hidden>)
 >Re: Fast hash of NSData? (From: Graham Cox <email@hidden>)
 >Re: Fast hash of NSData? (From: ChanMaxthon <email@hidden>)

  • Prev by Date: Re: Fast hash of NSData?
  • Next by Date: Re: Fast hash of NSData?
  • Previous by thread: Re: Fast hash of NSData?
  • Next by thread: Re: Fast hash of NSData?
  • Index(es):
    • Date
    • Thread