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]
