In your case I would use either structs or arrays but not lists, since Lists can get quite slow with a certain size. It's allways a string operation. In CF8 structs were massively improved in performance. That's why you can use either an array or a struct. But since a struct key is more informative than an array index, I would use structs. Then you could use something like StructFind or StructKeyExists in order to check existing keys...
Greetings / GrĂ¼sse Gert Franz Customer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer Mailingliste bei: deutsch: http://de.groups.yahoo.com/group/railo/ english: http://groups.yahoo.com/group/railo_talk/ D F schrieb: > Trying to the fastest way to do the following. > > > comparing items that are stored in session ( as a list, or array ). This is > storing IDS or items. > > Now, for product listings, searches etc... we need to compare if item is > already in the users session. > > Which would be fastest as far as Coldfusion processing time: > - Array of ids. > - List of ids ( use listFind ). > - ReFind > - Other option? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282080 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4