Subject: RE: [xsl] How to speed up parsing ?? From: Dipesh Khakhkhar <dkhakhkh@xxxxxxxxxxxxxxx> Date: Thu, 31 Jul 2003 14:36:33 -0400 |
Hi, Thanks a lot for replying to my query. First answer to Rod's questions: -------------------------------- I am using a wrapper program in java and i m running it on unix system. So i have to found whether it has used DOM or SAX as parsing engine. I am using it like java -ms25M -mx100M xslFileName xmlFileName > output.txt I was writting my xsl on notepad and then today i downloaded xml editor cooktop where it allows parsing of xsl file and get the output. I did time comparision and found that i am able to get the output using this within a minute and to get the same output the wrapper program taking much more time. cooktop Other program ------------------------------------------------- Less than a minute 24 mins. So this is drastic change. Actually previously i was wondering is it because of my code in xsl or what. But that is not true. Since i have used apply template construct instead of for-each construct. DOES THIS MAKES ANY DIFFERENCE ?? I guess the file pointer has to go the same in both the cases when the engine parses xml file. Data is very big. It will flood mail box of all the users, thats why not pasting here. Answer to Rod's questions: -------------------------- Well that is what i am guessing now. I have to check which engine is used in the wrapper program since i got only the class file I have ask from the person who has developed it. Anyway thanks a lot. Regards, Dipesh Date: Thu, 31 Jul 2003 10:03:31 +0100 From: Rod Humphris - FLPTN <rod.humphris@xxxxxxxxxxxxxx> Subject: RE: [xsl] How to speed up parsing ?? Hi Dipesh There has been a thread on working with big data before so there'll be some useful stuff in the list but processing 30/50 MB needn't be slow necessarily. What parser/host process are you using, what's the spec of the box (memory/speed) and what do you call slow? A sample of the data and xslt would help too. Cheers Rod Date: Thu, 31 Jul 2003 10:00:02 +0200 From: "Simon Bretin" <simon@xxxxxxxxxxxxxxxx> Subject: Re: [xsl] How to speed up parsing ?? 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. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to speed up parsing ?, Tengshe, Ashish | Thread | AW: [xsl] Deleting a node depending, Markus Abt |
RE: [xsl] How to speed up parsing ?, Tengshe, Ashish | Date | [xsl] generate-d( ) not working, John |
Month |