We should one day implement the TODO for an efficient ImmutableMultiset.asList() #1430
Labels
P3
no SLO
package=collect
status=research
type=enhancement
Make an existing feature better
type=performance
Related to performance
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.)
The text was updated successfully, but these errors were encountered: