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

Should try to coalesce events on the PostEventQueue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • client-libs
    • None
    • beta
    • generic
    • generic

      Paint and mouse events are coalesced in the event queue currently.
      However, the intermediate step of posting them to the PostEventQueue in
      /sun/awt/SunToolkit.java produces a noticeable performance hit.

      This was done very artificially: as a test case, Robi simply changed
      every place where the event was posted to the PostEventQueue to post
      directly to the EventQueue. Painting appeared to happen much faster
      when this was done.

      We should investigate where the slowdown is, and what we can do about it.
      For example, adding code to the PostEventQueue to do coalescing of paint
      events might be one approach. Or, it might turn out that the bottleneck
      lies somewhere else.

            duke J. Duke
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: