Collectors.toSet() parallel performance improvement

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: