Re: [OpenJDK Rasterizer] [OpenJDK 2D-Dev] Path2d needRoom very slow for huge paths

2015-04-22 Thread Laurent Bourgès
Jim, Here is a new webrev to improve the grow algorithm of Path2D needRoom() and handle properly overflow: http://cr.openjdk.java.net/~lbourges/path2D/Path2D_needRoom.2/ Changes: - fixed condition in needRoom() methods to avoid overflow - use Arrays.copyOf(oldCoords, newSize) in expandCoords() me

Re: [OpenJDK Rasterizer] [OpenJDK 2D-Dev] Path2d needRoom very slow for huge paths

2015-04-22 Thread Jim Graham
Hi Laurent, The same copyOf() change would apply to the method that grows the types array. I created https://bugs.openjdk.java.net/browse/JDK-8078464 for this part of the fix... ...jim On 4/22/15 1:22 PM, Laurent Bourgès wrote: Jim, Here is a new webrev to improve the gro