re* functions are inherently slower than their find* equivalents. 
There's a startup cost for the RegEx engine.

--Ben Doom

Barney Boisvert wrote:
> 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
>> --
>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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

Reply via email to