Passing Arrays By Reference In ColdFusion - SWEEET!

<!--- Set up the iterations. --->
<cfset intIterations = 10000 />
 
<!--- Test the standard array calls. --->
<cftimer label="Test ColdFusion Array" type="outline">
	 
	<!--- Loop for speed testing. --->
	<cfloop index="intI" from="1" to="#intIterations#" step="1">
		 
		<!--- Alter the array. --->
		<cfset arrGirls = AlterGirls( arrGirls ) />
	 
	</cfloop>
	 
	<!--- Output final size. --->
	Final Size: #ArrayLen( arrGirls )#
 
</cftimer>
 
 
<!--- Test the java.util.ArrayList calls. --->
<cftimer label="Test java.util.ArrayList" type="outline">
	 
	<!--- Loop for speed testing. --->
	<cfloop index="intI" from="1" to="#intIterations#" step="1">
		 
		<!--- Alter the array. --->
		<cfset AlterGirls( arrJavaGirls ) />
	 
	</cfloop>
	 
	<!--- Output final size. --->
	Final Size: #ArrayLen( arrJavaGirls )#
 
</cftimer>

For Cut-and-Paste