Hi Chris,
That is a good point. It does take substantially longer on the first hit.
But I have found that even the subsequent hits take much longer with a
custom font involved. Here are some average results based on a smaller
document than I discussed earlier:
Helvetica font - 1st hit = 4.385 seconds
Helvetica font - other hits = 1.081 seconds
Custom font - 1st hit = 7.188 seconds
Custom font - other hits = 3.078 seconds
Thanks for any input!
Scott
Chris Bowditch
<[EMAIL PROTECTED]
otmail.com> To
[EMAIL PROTECTED]
02/24/2004 03:45 cc
AM
Subject
Re: non Base-14 fonts and
Please respond to performance.
[EMAIL PROTECTED]
he.org
[EMAIL PROTECTED] wrote:
> During performance tuning, I came across the issue of non Base-14 fonts
> killing performance. I have a pdf that renders in 20 seconds using the
> Helvetica font but when the font is changed to a ttf file via the
> userconfig.xml, the render time takes 2 minutes or more.
When you say it takes 2 minutes to render? Are you measuring performance
by running from command line and thereby starting a new JVM instance
with each call to FOP? If so, then it will take longer for FOP to deal
with custom fonts because as you have said it has to parse the font
metrics. However, it only has to do this once per JVM instance, so once
FOP has been started inside a JVM and the document has been rendered
once at this slower time, then subsequent runs should be much quicker.
So this would not be an issue in a servlet or embedded environment, only
the first request for a document would be slow, and subsequent requests
should not have this issue.
<snip/>
Chris
---------------------------------------------------------------------
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]