This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Performance optimization and avoiding Out of Memory errors
- From: Lewden Romain <romain dot lewden at orsyp dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 6 Sep 2002 11:36:30 +0200
- Subject: [xsl] Performance optimization and avoiding Out of Memory errors
- Reply-to: xsl-list at lists dot mulberrytech dot com
I'm working with quite important XML Data Base ( 10 Mo) and trying to
extract information and transform it into HTML files and rtf format.
I work with Xt processor (release 19990511)
I have two big problems :
1)time of genration is very important
I create a predocument xml of 10 Mo (with 10 chained requests about 6,000
objects)
This step takes 3 hours, with a station of 512 RAM Memory
Then I create in HTML a file for each object; it takes me 14 hours.
it is a recursive call :
<dog level="0" name="Toto1">
<dog level="1" name="Toto1">
<dog level="2" name="Toto1"
<dog level="3" name="Toto1">
<cat>ieodfli</cat>
<cat>ieodfli</cat>
</dog>
</dog>
<dog level="2" name="Mydog">
<dog level="3" name="Toto1">
<cat>ieodfli</cat>
<cat>ieodfli</cat>
</dog>
</dog>
</dog>
</dog>
I've a template for "dog", with recursive calls, and if I'm in level "2" I
create a separate HTML page. I've 6000 elements at level 2 and it takes me
10 hours. How can I optimize this time ?
2) When I work in rtf, I can have out of memory errors, because I write less
files but they become huge (9 Mo octets).
All the output file is kept in memory in memory until the stylesheet is
performed.
How can I introduce an option to force my program to write "in real time" in
the output file ?
I launch xt with Java, with the fonction Driver.main(myArguments), where
myArguments represent source stylesheet output param1=...
Thanks for every help.
Romain Lewden
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list