Those aren't equivalent.  REFind does a case-sensitive RegEx search.
find (which you didn't list) does a case-sensitive search.  contains
does a case-INsensitive search.  I'd expect contains and findNoCase to
be roughly equivalent, with REFindNoCase lagging slightly.  Find and
and REFind should be slightly faster than their NoCase equivalents.

cheers,
barneyb

On 11/1/07, Larry Lyons <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Suffering from a post Halloween brain freeze here, but I cannot remember 
> which would be faster:
>
> <cfif foo Contains "xyz">
>
> or
>
> <cfif refind(foo,"xyz",1,false)>
>
> thanks,
>
> larry
>
> --
> Larry C. Lyons
> Web Analyst
> BEI Resources
> American Type Culture Collection
> http://www.beiresources.org
> email: llyons(at)atcc(dot)org
> tel: 703.365.2700.2678
> --
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292490
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