> -----Original Message----- > From: Robertson-Ravo, Neil (RX) [mailto:Neil.Robertson- > [EMAIL PROTECTED] > Sent: Monday, June 25, 2007 1:44 PM > To: CF-Talk > Subject: Re: Fastest... > > For a compare? Wouldn't a list or an array be quicker?
If each ID were a key in the struct, then no, not by a wide margin. I may have missed the point but I thought were talking about a list of IDs (presumably strings) and we wanted to know if a new ID was already in the list. In this case a struct where the key name was the ID (perhaps the data is useless) lets you do a simple "StructKeyExists()" and get back a Boolean. An array of values would require a loop to do the same task. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:282123 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

