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

Re: Performance issue XSL:FO

Subject: Re: Performance issue XSL:FO
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 12 Mar 2007 13:38:24 +0100
Re:  Performance issue XSL:FO
Thomas Yip wrote:
I'm generating a PDF on the fly from my servlet. I use transformer to
do XSL:FO translation:

4> transformer.transform(src, res);

However line#4 seems to be taking a lot of time to execute (around 40
seconds).
- Can anybody tell me why it takes so much longer from my servlet?
- Is there a way to improve the performance when run it from my
servlet?

Hi Thomas,


You appear to have a question about Apache FOP performance, I think your best bet is on the Apache FOP mailing list (it is quite an active list). You state that line nr 4 "seems to be taking a lot of time", which is rather vague. Please add timing logs and make sure it really takes so much time, or whether it is something else in your code.

In general, it should not matter in the least to run it from a servlet or from the commandline, apart from the fact that memory management (and amount available to the JVM) may be different and memory swapping may add much to the running time. I have a system that dynamically creates PDFs from a servlet and it takes, on average, less time than on the commandline (which is a result of caching the objects, of course).

Cheers,
-- Abel Braaksma

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