Testing String Equality Of Any Length Happens Instantly In ColdFusion

<!---
	Store a large string which will then used to build an
	even bigger string (FYI: I wrote this as a 300 word count
	assignment in Creative Writing at Tufts).
--->
<cfsavecontent variable="strTextA">
	She looked peaceful; eyes closed, head tilted down, breathing
	- controlled and soft. Areas of fabric, turned dark with
	sweat, stuck to her body revealing the grizzly figure below
	it. Cut-off army fatigues could do little to hide her massive
	and striated legs. Femininity with a warrior's touch.
	Exhaling sharply, she opened her eyes and mounted the machine
	next to her. With pads resting on her shoulders and white-
	knuckled fists grabbing at the handles, she took one deep
	breath, held it, then lifted the weight from its stack. Her
	face, once soft and peaceful, was now plagued with pain. She
	tried to control her body, which began to quake violently
	beneath the load of five hundred extra pounds. At best, she
	was able to stop her knees from buckling. She began to slowly
	lower the heel of her foot down beyond the level of her toes.
	Resting at the bottom for no more than a split second, she
	groaned loudly and exploded upwards, flexing her engorged
	calves as hard as she could. Back down and up, and again and
	again. With every rep came the surfacing of a new vein, a
	new ripple, new growth. Then, one the last rep, she held it
	at the top, biting down, trying to fight the pain. And when
	she could not hold it anymore, she collapsed. The iron
	collided with its cradle as she collided with the floor.
	There she lay, chest heaving, desperately trying to fill her
	lungs. This time however, she did not try to control her
	twitching legs. This time she smiled.
</cfsavecontent>
 
<!---
	Repeat the above string 40 times. This will
	generate a string that is 61,161, certainly a
	hard string to compare???
--->
<cfset strTextA = RepeatString( strTextA, 40 ) />
 
<!--- Store a copy of A into B. --->
<cfset strTextB = strTextA />
 
 
<!---
	Compare the two strings. Does this have to compare
	every character? If so, it would be tens of thousands
	of characters to compare.
--->
<cftimer
	label="EQ Operator"
	type="outline">
 
	Equals: #(strTextA EQ strTextB)#
 
</cftimer>

For Cut-and-Paste