Groups | Blog | Home
all groups > dotnet xml > november 2004 >

dotnet xml : performance of system.xml vs msxml4.0


jiglu_desai NO[at]SPAM yahoo.com
11/25/2004 5:54:31 AM
I have an xsl file to generate xml in to an html file. The size of
the xsl is 300kb and size of the xml is 47 kb (the size of xml is
variable).
I am using VB.net to convert the xml file into an html file. The
vb.net module peforms following task:

load the xml file in XMLDocument object ( I can't use XpathDocument
object)
load the xsl file in XSLTransform object
perform the transformation.


When I was using VB6 with Msxml 4.0 parser, I was getting good
performance results. The transformation was completed in an average
time of 40-50 milli second. When the same trasformation was
performed using system.xml the timings came around 100-120 milli
second.

Secondly as the size of the xml increases, the timings with system.xml
increased significantly when compared with msxml 4.0.

Is the use of System.xml slow compared to msxml 4.0 ? Is the
statement "System.xml is based on msxml3.0" true?
How can I improve the timing while performing the transfromation using
Christoph Schittko [MVP]
11/26/2004 3:28:52 PM
No, System.Xml is absolutely not based on MSXML 3.0. It's a complete
managed implementation. There is no unmanaged code or interop with COM
objects under the covers.

The performance difference between System.Xml is documented in the
Microsoft KB and discussed this thread [0]. The next release of
System.Xml in Visual Studio 2005 will address the performance issue
[1][2].

HTH,
Christoph Schittko
MS MVP XML
http://weblogs.asp.net/cschittko

[0] http://www.dotnet247.com/247reference/msgs/31/156985.aspx
[1] iwce.calanza.com/content/ARC380_Fussell.ppt
[2] http://blogs.msdn.com/mfussell/archive/2004/10/15/242659.aspx


[quoted text, click to view]
AddThis Social Bookmark Button