Before we embark on another performance-of-properties thread,
a couple of questions:

i) Which version of Fop is involved ?

I'd guess you are using HEAD, but this needs to be clear.

ii) Which profiler are you using ?

I ask because I got burned with measurements using a profiler
that does not handle recursion properly. 

iii) What are the percentages ? Which methods are high-runners ?


On Wed, 2004-04-14 at 17:29, Steven McNeel wrote:
> Hello,
> 
>     I'm generating a complex PDF from a big FO document, with lots of 
> <fo:block> elements.  It takes about 10 seconds to render a 16 page PDF.  
> When I profiled my code, I see that most of that time is spent called 
> Block.layout which gets called about 4,000 times.  Most of its time is spent 
> calling PropertyList.get (for a total of nearly 400,000 times!).  The 
> PropertyList.get method calls an overloaded version of itself, which in turn 
> calls PropertyList.findProperty a whopping 1,500,000 times.
> 
>     My question is:  as an FO stylesheet writer, is there any way I can 
> arrange my use of <fo:block> elements, or the attributes therein, to 
> decrease the number of lookups on the PropertyList object?  Or, is there 
> anything tricky I can do, perhaps in the FOP code itself, to default some 
> integers into the different properties so that FOP doesn't even have to look 
> them up?
> 
>     (If anyone is interested in seeing what is probably an overly-complex FO 
> stylesheet, and is interested in pointing out my rookie mistakes, that would 
> be fantastic, but otherwise, some advice on my questions above would be 
> great.)
> 
>     Thanks!
> 
> -Steve McNeel
> 
> _________________________________________________________________
> Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
> Premium! 
> http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
John Austin <[EMAIL PROTECTED]>

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

Reply via email to