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

Canvas PixelWriter can be very slow

    XMLWordPrintable

    Details

      Description

      The attached test shows that Canvas initialization using PixelWriter can be very slow.
      The problem is with the underlying GrowableDataBuffer, which grows with small increment of just 1K and copies the entire buffer on each size increase. Practically all time is spent in Arrays.copyOf() and GC.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              flar Jim Graham
              Reporter:
              omazurov Oleg Mazurov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: