This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Whitespaces against efficency


Hi,

I'm in the profiling stage of a web server based on XML (with Sun's parser)
/ XSLT (with XT).

Parsings and processings beeing very time consuming (between 95 and 99% of
the total time), we have developped a sophisticated cache that handles
dependencies (between DOM and files, processing result and processing
inputs, etc...), but that's not enough !

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.

How is it possible to remove them?
I tried the org.w3c.dom.Element.normalize() and
com.sun.xml.tree.ElementEx.trimToSize() methods but the result is not
tremendous!

Any suggestion?

Tangi


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]