[jdom-interest] Performance SAX versus DOM

=?windows-1256?Q?Martial_Dor=E9?= martial.dore at laposte.net
Thu May 30 04:15:50 PDT 2002


Orchestra NetworksHi,

In beta 8, DOMBuilder has been deprecated as its javadoc says :
"The class can be used to build from files, streams, etc but other builders like SAXBuilder can perform the task faster because they don't create a DOM tree first."

However, in our case, SAXBuilder is 2x (small files) to 4x (larger files) slower.

                     | 170 files 2kb-4kb  | 87 files 6kb-43kb 
DOM Xerces 2.0.1     |  88.8              |        456.1 
SAX Xerces 2.0.1     | 196.3              |       2280.7
SAX Piccolo 1.02     | 158.6              |       2111.7 

The numbers are average/file in ms, on VisualAge VM, with non-validating parsers. 

Moreover, reading then all the nodes of the document for creating 
our object structure is 25% faster if it has been built with DOMBuilder...

Is there something I missed in my configuration or is there specific performance issues
with SAXBuilder ?

    Thanks,
    Martial

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020530/d06d26bf/attachment.htm


More information about the jdom-interest mailing list