I'm using the XSLF part of POI for creating slides with some thousend freeform
shapes:
public static XSLFFreeformShape createShape(XSLFShapeContainer
container, GeneralPath path, Color
lineColor, double lineWidth, Color fillColor) {
XSLFFreeformShape shape = container.createFreeform();
shape.setPath(path);
return shape;
}
The grouping is as follows:
slide
group (all)
group (spot layer 1)
group (spot 1)
freeformshape (spot boundary)
autoshape[ellipse] (spot center)
group (spot 2)
freeformshape (spot boundary)
autoshape[ellipse] (spot center)
...
group (spot layer 2)
...
Everything is fine so far but for ca. 2000 spots with up to 100 points per
boundary the creation of
the slide takes ca. 2 minutes. I profiled the application using JVisualVM and
found as bottleneck
org.apache.xmlbeans.impl.store.Cursor._getSelectionCount()
I have attached a picture of the complete call tree with profiling metrics.
Is there anything I can do to improve the performance?
Thanks in advance for all suggestions.
Frank-Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]