I am not sure...how the internals of CFMX Implementation makes quite some difference in the performance of code.
Does anybody suggest going the Java route for better performance?
Thanks
Joe Eugene
Here is the test code...
Testing Java HashMap Vs CFMX Sructs (Both Implement Java Native
Maps)<br><br>
<cfscript>
sTime=getTickCount();
jTable = CreateObject("Java","java.util.HashMap").init();
for(i=1;i lte 10000;i=i+1){
jTable.put(i,i);
}
eTime=getTickCount();
</cfscript>
Java Hashtable Exec Time:<cfoutput>#eTime-sTime#</cfoutput> ms
<br>
<cfscript>
sTime=getTickCount();
cfStruct = structNew();
for(i=1;i lte 10000;i=i+1){
cfStruct["#i#"]=i;
}
eTime=getTickCount();
</cfscript>
CFMX Structs Exec Time: <cfoutput>#eTime-sTime#</cfoutput> ms
<!---<cfdump var="#jTable#">--->
<!---<cfdump var="#cfStruct#">--->
Joe Eugene
<<attachment: winmail.dat>>
