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

listview multi selection getSelectedItems/Indices is very slow

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u25
    • Fix Version/s: 8u60
    • Component/s: javafx

      Description

      Iterating over ~40000 getSelectedItems/Indices in a ListView with multi selection is very slow, it takes about 4 seconds on my computer.
      I've found out that BitSet.nextSetBit is called more than billion times in MultipleSelectionModelBase/createListFromBitSet/get, maybe that's the problem?

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: