On Mon, 20 Sep 2004 16:30:23 +1000, Gary Crouch <[EMAIL PROTECTED]> wrote:
> Any one know where I can find out what Java data-types CF uses to store
> Int's, Char's, Float's etc? I can from that calculate a guess on how much
> memory a structure will take up.

Everything in CF is a string and it's converted based on context:

<cfset x = 42>
<cfset y = x & x>
<cfset z = x + x>

y ends up with 4242 and z ends up with 84 (both as strings but both
can be interpreted as numbers).

A CF struct is a variant of a HashMap. A CF array is a variant of a Vector.

> Or are there other factors? Any thoughts list buddies?

I personally think you're on a hiding to nothing even trying to figure
this out... Bear in mind that strructs are 'copied' by reference so
they are often shared between multiple variables. That might affect
your calculations. There's a ton of other factors too...

Why do you think you need this level of information? macromedia.com
uses session scope a lot and we have over 20,000 concurrent active
sessions during peak morning traffic without problems. I'd be really
surprised if you really run the risk of running out of memory...
-- 
Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to