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: Giovanni <rbml at alphaview dot com>
Date: Thu, 31 May 2007 00:52:38 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <000001c7a357$fae9d860$6401a8c0 at MikeBrHP>
Man RBNUBE you are on top of your game. Or atleast I am currently so 
pathetic on RB you be looking good there. :)

Thanks by the way,

So any drawbacks over arrays?

RBNUBE wrote:
> 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>
>
>   

_______________________________________________
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>