A high runner in FOP 0.20.5 is: PropertyList.findProperty(). It calls other functions in org.apache.fop.fo that consume significant CPU resources. In one example it called itself recursively to a (depth of 10)
Without taking a closer look at the code, I suspect it tries to find inherited values. One approach to cope with this is to resolve inherited and default values immediately during FO construction. Because the full property set is stored, in contrast to only specified properties now, only the parent has to be looked up. This comes, of course at the price of consuming more memory, and there are functions like frome-nearest-specified-value() which require specified properties to be marked. If someone can come up with a space efficient storage, this may be a solution.
J.Pietschmann
