> Interesting thought about compareNoCase....
> To find out, I just tried a 10,000-iteration cfloop test of 'is' v/s
> 'comparenocase'.
> <cfif comparenocase(x,"1")> took 1800ms for 10,000 iterations.
> <cfif x is "1"> took 1600ms for 10,000 iterations.
For integer evaluations, yes, using IS or EQ is a tad bit faster, but for
string evaluations (which was the original subject of the post), using
CompareNoCase() is about three times faster. See my previous post on the
subject for details and millisecond times.
-Justin Scott, Staff Developer
http://www.annex.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists