xsl-list
[Top] [All Lists]

Re: How to speed up parsing ??

2003-07-31 01:00:02
Hello,

My understanding is that most of the XSLT Engines are using internal DOM
representation of your XML data, thus taking a lot of time compared to a SAX
representation. So the bigger the XML file, the bigger the DOM, and the
longer it takes to be built. Once the DOM is built I think that the regular
XSLT Engines are quite efficient doing their jobs.

The solution would be to use a SAX XSLT Engine (if your XSL is simple enough
this should work), but I don't know of any engine having such a mode.

Simon.

----- Original Message ----- 
From: "Dipesh Khakhkhar" <dkhakhkh(_at_)mailbox(_dot_)syr(_dot_)edu>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, July 31, 2003 1:15 AM
Subject: [xsl] How to speed up parsing ??


Hi,

I would like to know how can i speed up parsing xml file.
I am having huge xml file (approx 30-50 MB). I have written xsl to get
text
out it. I am getting it properly but it is taking lotta time.

I have used "apply templates " frequently to go to the respective node. As
per
my knowledge "for-each" and "apply-templates" does the same thing and i
assume
internally they must be working alike. WILL THERE BE SPEED ENHANCEMENT IF
I
USE FOR-EACH INSTEAD OF USING APPLY_TEMPLATES.

Or if you do programatically the same thing will i be achieving speed
enhancement ??

My current xsl is drastically slow. Pls give me some hints and suggestion
to
enhance performance of my xsl processing.

Eagerly waiting for reply.

Regards,
Dipesh


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




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



<Prev in Thread] Current Thread [Next in Thread>