hi Donnie,
I'm not sure about the speed in the b-tree structure but i know that the memory consumption for XMLDocument is according to the following:
DOM and DataDOM overhead is per node. Node size is minimal .
- XmlNode: 4 bytes for parentNode
- +4 bytes for nodes that can have a next-sibling (which is prety much
everything)
- +4 bytes for nodes that have children - mostly XmlElement/XmlAttribute).
- + your data.
so maybe you can use this to calculate it? i also found the following KBs along the way and hope it might help you too.
INFO: Roadmap for Executing XPath Queries in .NET Applications
Article ID : 313828
INFO: Roadmap for XML in the .NET Framework
Article ID : 313651
HOW TO: Use the System.Xml.XmlDocument Class to Run XPath Queries in Visual Basic .NET (317018)
PRB: XSL Transformations with XmlDataDocument May Perform More Slowly Than XPathDocument (318580)
Hope that helps,
Michelle
***Disclaimer: This posting is provided "as is" with no warranties and confers no rights.***
--------------------
Message-Id: <11****************@news.west.earthlink.net>
From: Donnie Darko <cu*****@visions.cellar.door>
Subject: Re: Web Services Shared Resource/Memory
That raises a lot of questions for me.
Just what is the potential of the XmlDocument class and XPath methods?
Are the numbers below based on fact, or just finger in the air estimates?
For example -- what is the performance of XPath on large XML documents.
For small documents, it seems lickety-split.
If an XmlDocument is implemented using a b-tree structure, then even for
very large numbers of records the speed of search should not increase by
much, right ?
Kondratyev Denis wrote:
Imho there is not "right" or "recomended" way for all situations. If your
xml document about 10-20 records storing in application object is good
idea. But if you have huge document with 10000 nodes you can store it in
DB. Or you can store data in DB if you data is VERY important and you want
it from server critical errors.
"Donnie Darko" <cu*****@visions.cellar.door> ???????/???????? ? ????????
?????????: news:25****************@news.west.earthlink.net...
You say that this is not a 'recommended' way to share resources in web
applications.
Can you suggest a recommended way?
Specifically, I want to share access to an XmlDocument across all users
of
my web service. I want them to be able to query and update nodes on the
document.
--
incognito @
http://kentpsychedelic.blogspot.com/
Man is the best computer we can put aboard a spacecraft ... and the only one
that can be mass produced with unskilled labor. -- Werner von Braun