hmmm,

AFAIK : Lists are faster, but have their drawbacks in what data they can
hold etc....Arrays are easy to manipulate and I can store a huge amount of
data which is easily referenced.  Structures are also easy to manipulate but
if you are just storing ID then could be overkill..

I would say its probably  : Lists,Arrays,Structures for order of speed.  

But without seeing what data you want to store I cant obviously make a
recommendation as depending on the format : you could be stuck with only one
method.


-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 10:52
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Fastest data structure?


I want to hold a list of ID's in memory and be able to find them fast.  The
ID's are not going to be valid ColdFusion variables, but are going to be
strings.

If I store them in a list, array or structure, what is going to be the
quickest way of checking if an ID exists in that store?

In other words... What is the fastest memory read construct within CF for
storing simple (non-CF variable) strings?

Paul
-----------------------------------
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL PROTECTED]
+44 (0)7866 573013



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to