[OpenJDK 2D-Dev] Openjdk java2d rasterizer JEP for pisces (marlin) enhancements ?
james.graham at oracle.com
Tue Feb 24 17:33:01 UTC 2015
On 2/24/15 6:51 AM, Laurent Bourgès wrote:
> FastPath2D would be public API. Perhaps that should be a separate
> FastPath2D is only a improvement of the Path2D class to trim arrays in
> the clone() method but there is another solution: provide a new Path2D
> constructor with given data arrays.
> I agree it is another topic but really used by marlin to avoid too many
> array resizing.
Why not just use new Path2D.Float(oldpath2d)? It trims the arrays of
the source Path2D with minimal allocation waste...
More information about the 2d-dev