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

2018-10-23 Thread Laurent Bourgès
Phil, I quickly modified the final update & sort loop to: - move sort in another block - use qsort() using a new comparator sortSegmentsByCurX This improves performance in PolyLineTest by 3 times: ~1s vs 3.5s ! Apparently qsort() is not optimal (comparator can not be inlined by c) so it may

[OpenJDK 2D-Dev] [12] RFR JDK-8211422: Reading PNG with corrupt CRC for IEND chunk throws IIOException

2018-10-23 Thread Jayathirth Rao
Hello All, Please review the following fix in JDK12: Bug : https://bugs.openjdk.java.net/browse/JDK-8211422 Webrev: http://cr.openjdk.java.net/~jdv/8211422/webrev.00/ Issue : When we

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

2018-10-23 Thread Laurent Bourgès
Phil, Yesterday I started hacking ShapeSpanIterator.c to add stats: the last stage (sort by x0) is the bottleneck. In this case every sort takes up to 15ms per pixel row ! I will see if I can adapt Marlin's MergeSort.java to C to have an efficient sort in-place. Do you know if libawt has already