[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: DOM or SAX: Sense and Sensibility


impression of sense and sensibility
On Wed, 7 Nov 2001, PaulT wrote:

>
> > NOT reading/parsing and rereading/reparsing relatively static
> > XML documents gives me a huge performance boost.
>
> I was under impression that it should usually give
> about 10-15% boost. Is that 'huge' ?

Using Saxon's native 'DocumentInfo' tree in memory - an at least 10X
_plus_ performance boost on large documents vs starting from scratch with
the serialized XML document. I think that _is_ huge.

> > In fact that is the major reason why I moved from SAX
> > based XSLT rendering to DOM based rendering for the vast majority of our
> > stuff.
>
> XSLT rendering is not 'SAX based'. It is 'OM-based'.

I should have been more precise in my language; 'Live-parsed' vs
'statically cached-OM' then. Most fast renderers use a SAX stream (which
in turn usually comes from some serial format) as their XML data source
which they then convert to whatever internal OM they prefer just before
doing the XSLT rendering. There is a lot of overhead in that for large
documents.

-- 
Benjamin Franz

 "Code as if whoever maintains your code is a violent
  psychopath who knows where you live."
                    -- Nancy Lebovitz, the button lady


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.