Skip to content

We should one day implement the TODO for an efficient ImmutableMultiset.asList() #1430

Description

@gissuebot

Original issue created by kevinb@google.com on 2013-05-24 at 07:29 PM


I almost recommended on Stack Overflow finding the most frequently occurring element in a multiset using

Multisets.copyHighestCountFirst(theMultiset).asList().get(0)

If I read the code right this would have spectacularly bad performance, risking an OutOfMemoryException even. (Sorry, no time to verify this yet, jotting this here before I forget it.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions