[OpenJDK 2D-Dev] Speed of drawPolyline on JDK11

Philip Race philip.race at oracle.com
Fri Oct 12 14:36:58 UTC 2018

If there are no comments in the source, then there is no documentation :-(
Reverse engineering/studying the code is what we'd have to do if that were
the approach to be taken here.


On 10/12/18, 2:18 AM, Laurent Bourgès wrote:
> Phil,
> I looked at the hostpot in 
> src/java.desktop/share/native/libawt/java2d/pipe/ShapeSpanIterator.c 
> (75% cpu time) and its sort algorithm looks like an insertion sort ...
> If you could give me some explanations (or documentation), I could try 
> optimizing this method.
> Do you know if it uses an Active Edge Table (AET) or it traverses all 
> segments every time ?
> i.e. segmentTable contains only ACTIVE segments or all ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20181012/cebf1bef/attachment.html>

More information about the 2d-dev mailing list