| 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> |
|---|---|---|
| ||
| Previous by Date: | New Beeee question: To dictionary or not dictionary, that is the question., Giovanni |
|---|---|
| Next by Date: | Re: New Beeee question: To dictionary or not dictionary, that is thequestion., Giovanni |
| Previous by Thread: | New Beeee question: To dictionary or not dictionary, that is the question., Giovanni |
| Next by Thread: | Re: New Beeee question: To dictionary or not dictionary, that is thequestion., Giovanni |
| Indexes: | [Date] [Thread] [Top] [All Lists] |