Re: Dictionary or Array?
Re: Dictionary or Array?
- Subject: Re: Dictionary or Array?
- From: zauhar <email@hidden>
- Date: Fri, 13 Jun 2003 15:58:33 -0400
You must have that reversed. A dictionary lookup requires a hash
operation, an array lookup is simple arithmetic.
Randy
On Friday, June 13, 2003, at 02:34 PM, Ben Dougall wrote:
On Friday, June 13, 2003, at 02:11 pm, zauhar wrote:
Lorenzo, if you are always going to have the same set of fields, then
you really don't need a dictionary, and array access should be a lot
faster.
i thought i read somewhere that dictionaries are faster than arrays? i
could very easily be wrong there, but i think i read that somewhere.
Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104
Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web:
http://tonga.usip.edu/zauhar
Discussion after watching Disney's "Lilo & Stitch":
DAD: "But why did the space aliens speak English, as opposed to French,
or Swahili? And why did the one alien speak English with an Eastern
European accent? I don't get it."
CATHERINE (age 7): "That's 'cause you don't have a good cartoon brain."
_______________________________________________
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.