Re: Relationship between -isEqual and -hash
Re: Relationship between -isEqual and -hash
- Subject: Re: Relationship between -isEqual and -hash
- From: j o a r <email@hidden>
- Date: Sun, 21 Jan 2007 08:58:18 +0100
On Jan 21, 2007, at 1:17 AM, John Stiles wrote:
Yes, it has to do this, otherwise dictionaries would very
occasionally return wrong results.
...or almost always return incorrect results. It all depends on how
well the hashing algorithm manages to create unique hash values for
the items in the collection.
An interesting article on the topic of hashes and performance:
<http://www.mulle-kybernetik.com/artikel/Optimization/opti-7.html>
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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