• 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: Dictionary or Array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dictionary or Array?
      • From: Wade Tregaskis <email@hidden>
References: 
 >Re: Dictionary or Array? (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Cocoa-Java does not allow a space in the project name?
  • Next by Date: Re: View system usage with lower left origin
  • Previous by thread: Re: Dictionary or Array?
  • Next by thread: Re: Dictionary or Array?
  • Index(es):
    • Date
    • Thread