realbasic-nug
[Top] [All Lists]

RE: New Beeee question: To dictionary or not dictionary, that is theques

To: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: New Beeee question: To dictionary or not dictionary, that is thequestion.
From: "RBNUBE" <rbnube at mabenterprises dot com>
Date: Thu, 31 May 2007 03:47:46 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Importance: Normal
Keywords: RB-NUG
Organization: N/A
Thread-index: AcejVe724fNaUEapR7uboBBHqtHmYgAAIjMg
Dictionaries are used for fast lookups.  You don't have to loop dictionaries
to check if an entry exists.  I use them if I know that I'm going to have a
large number of entries that will need to be searched.

Basically, you're code is saying "Does this exist in the dictionary?" and
you get an answer.  With an array, you're saying "Are you what I'm looking
for?" over and over again until (potentially) all of the elements have been
checked, one by one.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>