Re: Dictionary or Array?
Re: Dictionary or Array?
- Subject: Re: Dictionary or Array?
- From: Wade Tregaskis <email@hidden>
- Date: Sat, 14 Jun 2003 10:13:37 +1000
You must have that reversed. A dictionary lookup requires a hash
operation, an array lookup is simple arithmetic.
If you know the index of the item you want. If you don't, but do have
some kind of key - like a field name - then for more than 50 items (or
so) a hash lookup is going to be much faster than a linear search on
the array.
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.