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

RE: Whitespaces against efficency

Subject: RE: Whitespaces against efficency
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 10 Apr 2000 09:46:41 +0100
siblingnodeiterator
> Using Intuitive's OptimizeIt, I saw that the next() method of
> com.jclark.xsl.dom.SiblingNodeIterator is very time consuming.
> I guess that's because my DOM trees have a lot of unuseful (except for
> indenting purposes) whitespaces text nodes.

I seem to recall that when James Clark announced DOM support in the latest
version of xt, he said it was very slow compared with using xt's native tree
format. Presumably this is one of the reasons. XPath's tree model is not the
same as the DOM model, so if the XSLT processor uses a DOM internally it is
going to have to do more work at run time. As a worst case (let me
speculate) the code needs to decide whether a text node is a non-preserved
whitespace text node on each occasion that the node is visited.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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-2013 All Rights Reserved.