A
Angelos Karantzalis
Hi, I'm in a situation where I have a Web App that needs to load some xml
info in-memory, and keep it there throughout the lifetime of my application.
Since the Xml could get large (200K+) and I wouldn't ned to use any
xml-specific operations on it (modify it, or do XPaths, xslt or whatever) I
de-serialize the xml into an object graph.
My question is:
Can I find out exactly how much memory my object graph occupies ? I want to
make some comparisons between holding that into memory, and holding an
XmlDocument instead ( because of the Xml-related operations I could use in
case I held the XmlDocument, it might be worth the trade, but I can't judge
without first knowing the difference in memory consumption :? )
Thanks a lot guys,
Angel
O:]
info in-memory, and keep it there throughout the lifetime of my application.
Since the Xml could get large (200K+) and I wouldn't ned to use any
xml-specific operations on it (modify it, or do XPaths, xslt or whatever) I
de-serialize the xml into an object graph.
My question is:
Can I find out exactly how much memory my object graph occupies ? I want to
make some comparisons between holding that into memory, and holding an
XmlDocument instead ( because of the Xml-related operations I could use in
case I held the XmlDocument, it might be worth the trade, but I can't judge
without first knowing the difference in memory consumption :? )
Thanks a lot guys,
Angel
O:]