On Dec 3, 2007, at 13:12, Noya Paolo wrote:

Hi Andreas thanks for your reply,
the XML is very little (ranging from 50 to 250 nodes with size less than 10Kb) that change it with a BufferedReader or even using a DOMSource (I
already parse XML elsewhere) not give me a real gain.
Maybe a 1 or 2 seconds but I'm not sure because could be depends on
different loads on server and so isn't really noticeable.
I changed my code anyway

OK, sorry.
The effect I mentioned is actually more applicable to FileReader or InputStreamReader. Reading a String happens in-memory, so that will indeed not save very much... :/

I wouldn't really know where to start looking. I'd try to profile one of those runs on the servlet, to try to find out where the bulk of the runtime is spent.

Other than that, if you don't feel like profiling, you could try to change the environment. Try using a different XML parser or a different XSLT processor, just to ascertain that the problem is really in FOP or whether FOP is simply waiting for some other process. You could even try to use a different JVM, or a different servlet container (Tomcat?)... Anything that helps to locate the problem.



Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to