Just ran the same code on Open BlueDragon. NThis test probably is not the 
equivalent of the previous tests, at home here I'm running this app on a 
MacBook (core duo 2.16 ghz with 2 gb RAM), running OSX 10.4 Tiger. J2SE 5. But 
the results are similar:

Memory Before: 26 Megs
string & string: 553776ms
String Length: 650000
Memory After: 45 Megs -- Increase of 19 Megs

Memory Before: 32 Megs
cfsavecontent: 65ms
String Length: 1400010
Memory After: 39 Megs -- Increase of 8 Megs


> Here are the results of your code with java.lang.runtime. Forgot to 
> mention that the JVM is 1.5.0_15-b04. 
> 
> Memory Before: 28 Megs
> string & string: 99642ms
> String Length: 650000
> Memory After: 91 Megs -- Increase of 63 Megs
> 
> Memory Before: 29 Megs
> cfsavecontent: 63ms
> String Length: 850003
> Memory After: 37 Megs -- Increase of 8 Megs
> 
> Basically what this tells me is that you should use cfsavecontent 
> rather than concatenating strings. But I was not expecting such a 
> difference.
> 
> larry
> 
> > Here are the results of your code (again BD for J2EE running on 
> JBoss 
> > AS 4.22):
> > 
> > string & string&: 33251ms
> > String Length: 390000
> > cfsavecontent: 62ms
> > String Length: 570006
> > 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

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

Reply via email to