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

Inefficient implementation of TreeItem expand/collapse

XMLWordPrintable

      The test which creates TreeView with 100 nested TreeItems of type String
      and then try to expand/collapse all items on every pulse shows less than 4fps performance.

      JavaPerformanceAnalyzer shows the most of the time is spent in TreeItem.equals methos.
      See attached sceenshot for more details.

      "Expand all" functionality seems to be the one which could be widely used by users.
      So, it's performance is important.


      To run the test do:
      1) compile TreeViewExpandPerfTest.java

      2) java -cp "JFX/rt/lib/jfxrt.jar;." TreeViewExpandPerfTest -size 100 -type wide

         where size is number of TreeItems in TreeView
               type is either wide or depth

            jgiles Jonathan Giles
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: