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

Collectors.toSet() parallel performance improvement

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None

      Collectors.toSet() combine step may perform faster if we check the set sizes and always add the smaller set into the larger. The element order is insignificant here as HashSet is used and collector is declared as UNORDERED.

            tvaleev Tagir Valeev
            tvaleev Tagir Valeev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: