Toolkit images create too many image buffers causing unnecessary garbage

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • 2d
    • beta3
    • generic
    • generic

      The Toolkit images (those created by createImage(URL/filename/ImageProducer))
      create the image buffers to store the data from the Producer too aggressively
      and end up creating some buffers that are immediately replaced causing the
      old buffers to become unnecessary garbage.

      This causes a performance degradation on startup as extra GC cycles are
      executed to clean up the discarded image buffers.

      No loss of data occurs, the discarded buffers are empty and simply a waste
      of allocation/GC overhead.

            Assignee:
            Jim Graham
            Reporter:
            Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: