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

Canvas PixelWriter can be very slow

      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.

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

          Canvas PixelWriter can be very slow

              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.

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

                      Created:
                      Updated:
                      Resolved:
                      Imported:

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

                          Created:
                          Updated:
                          Resolved:
                          Imported: