my experience with high traffic stuff like this is to store them as arrays.
Quick as lightning to add. In loe levels, you can't really tell the difference between an arrayappend(myArray, "kjsdlkjljdadjldja") and myLIst = listappend(myList, "kjsdlkjljdadjldja") but once you start adding large numbers of keys, the list method starts to slow down very quickly. Converting them to arrays gave me a **very** big perfomance increase, even when having to use search the array for a particular key afterwards. > -----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]
