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

Path2D storage growth algorithms should be less linear

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b65

      Backports

        Description

        A significant amount of time is spent allocating and copying arrays when a Path2D is grown to a large number of path elements. The current growth algorithm is linear, but other growable storage objects use a progressive growth algorithm that increases the number of new elements as the capacity grows.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: