timed out after 15 min 

lol

I find this very interesting in that my totally unscientific though
process
was: Since cfsavecontent is so damn easy to use it *must* be resource
intensive.

Go figure-- ColdFusion strikes again.

If string.concat() creates a brand new string object in memory to hold
the combination of the two original strings, then given a consistently
average sized string being added each time I would expect memory
consumption to be exponential.  

For instance, if you concatenated a string 1 byte in size 10 times over,
you would consume 55 bytes of memory.  1+2+3+4+5+6+7+8+9+10=55

For the life of me I can't figure out what the Big-O notation would be
for that though...

~Brad


-----Original Message-----
From: Gerald Guido [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2008 1:44 PM
To: CF-Talk
Subject: Re: CSV Generation MEMORY SUCK

I did a million loops - I don't know what possessed me to do that.

Memory was "measured" using task manager. Totally unscientific.

I did a restart on the service before each trial.
CF 8 developer
 2 gig ram
Java v. 1.6.0_01

cfsavecontent
2281 ms
192,356 k start
260,872K after

68.516 k difference

concatenation using  cfset
192,362 k start
580,952 k after

388,590 k difference


G


On Tue, Jun 3, 2008 at 1:55 PM, Brad Wood <[EMAIL PROTECTED]>
wrote:

> Ok, here are my memory usage stats on CF 7.  Someone please correct me
> if my code is wrong. It's a little messy, and I apologize for that.
>
>

-- 
"The important thing in science is not so much to obtain new facts as to
discover new ways of thinking about them."
- Sir William Bragg




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:306728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to