Hi Curtiss,

> Curtiss Howard wrote:
> > For a small file, SAX only had a 20% performance advantage over DOM.
> > I'd expected much more.


By default Xerces uses deferred DOM implementation so if you don't attempt to access any information from the DOM tree, you are pretty much only testing the "parsing" part of the implementation. If you try to access tree, you'll see that the deferred implementation is more efficient than Xerces DOM implementation for larger XML documents and less efficient for smaller ones. It does not look right though that for large documents difference between SAX and DOM is less than 20%.

You might find this article interesting:
http://www-106.ibm.com/developerworks/xml/library/x-injava/

For more info on Xerces performance:
http://www-106.ibm.com/developerworks/xml/library/x-perfap2.html

Thank you,
--
Elena Litani / IBM Toronto

Reply via email to