> Hi Rod,
> 
> Can you tell me why you think its more accurate than toString()?
> Also, I think iterating over the structure is going to cost a lot more.

The toString() call is simply a representation of the HashMap contents at
the object level. I assume CF stores the session scope (and possibly any
structure) as a HashMap to allow nulls. A HashMap object can be created
with any initial capacity and load factor you like. CF may be overriding
the default and supplying its own to improve performance, who knows? It
would be very difficult to accurately measure the session scope size, its
hard to measure the memory size of any java object really. Using the
methods provided by the HashMap class would produce a closer
approximation.

See
http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()
http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html

---
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