Scala Programming Language
  1. Scala Programming Language
  2. SI-7326

scala.collection.immutable.HashSet should implement subsetOf

    Details

      Description

      subsetOf can be implemented much more quickly for two HashSets than for two generic sets. So there should be a special case for HashSet.subsetOf when the argument is a HashSet as well.

      subsetOf is one of the fundamental set operations, and it is also used by equality. So this should be as fast as possible.

        Issue Links

          Activity

          Show
          Rex Kerr added a comment - https://github.com/scala/scala/pull/3315

            People

            • Assignee:
              Rüdiger Klaehn
              Reporter:
              Rüdiger Klaehn
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development