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

Optimize removal of listeners from ExpressionHelper.Generic

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 8, 9, openjfx11, openjfx15
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      Description

      ExpressionHelper.Generic is a utility class that is used in the implementation of bindings. When bindings are created and disposed listeners are added and removed from ExpressionHelper.Generic. This is done using an array list, leading to poor performance of List.remove when the list grows too large. Using a set would improve performance. The solution would need to ensure that the performance and memory doesn't suffer for a small number of listeners.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: