I don't think it's the tomcat issue, it takes a long time the first time even when I call it from a java class (if the class creates a pdf then creates another one before exiting, the second one is much faster). It's got to be in the FOP. Is there a way to fix this?



From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Why is FOP MUCH slower the first time than all other runs?
Date: Fri, 6 Feb 2004 12:02:00 -0500

its prob has something to do with caching
of with the fact that reflection is used
first time to find calss and instantiate it,
but there after its in the class loader

could add a context listener to tomcat startup
and it does the first xform on container startup



-----Original Message-----
From: Robert Paris [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 11:55 AM
To: [EMAIL PROTECTED]
Subject: Why is FOP MUCH slower the first time than all other runs?


I'm using FOP from a servlet in Tomcat. The first time I run FOP (using Driver to render a dpf - is that the best way?), it's VERY slow. However, every time after that, it's very fast. Does anyone know why? What can I do to fix this?

_________________________________________________________________
Optimize your Internet experience to the max with the new MSN Premium
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/


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

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


_________________________________________________________________
Click here for a FREE online computer virus scan from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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



Reply via email to