Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8078192

Path2D storage trimming

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8, 9
    • client-libs
    • 2d

        There are no public method to trim the arrays on an existing path object to just the needed size for long term storage. This would be useful when an object will be kept in a static state for a long time and the added storage that was created for potential growth will never be used.

        Workaround - the copy constructors do trim arrays so a saved path reference could be trimmed by copying it or cloning it and then saving that result, but it should be possible to do the same thing "in place".

              lbourges Laurent Bourgès
              flar Jim Graham
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: