If all you're going to be doing is storing numeric values, then an array
might be your best bet. Especially when you combine it with the built in
"contains()" Java method for arrays.

http://coldfused.blogspot.com/2007/01/extend-cf-native-objects-harnessing.ht
ml

-----Original Message-----
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 12:31 PM
To: CF-Talk
Subject: Re: Fastest...

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

If you've not settled on a storage mechanism you might consider a structure.
You could then easily do your search using the structFind functions.

Of course it depends on what else you'd need to do with the data (if the
order is important you'll lose it with a struct) but it probably is the
quickest way.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282095
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to