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

listview multi selection getSelectedItems/Indices is very slow

    XMLWordPrintable

Details

    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

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: