views:

98

answers:

3

What is the best Java primitive collections library? (most memory and time efficient)

I've found Trove and FastUtil to be the most used ones, but haven't found much comparison between them (or between others)

Is there any comparison available?

A: 

Someone has already asked What is the most efficient java collections library?

You may want to start looking there.

Matt

mattburns
I saw that, but it is more general and unspecified question.
Sarmun
+1  A: 

I am not aware of any good primitive-only framework benchmark. This one would be nice to see, as well as to compare with non-primitive versions (just to show how epically Java generics with autoboxing suck in some hardcore cases).

There's a benchmark from the Trove itself, I think the most straightforward way is to port it to couple of other libraries.

Also - not sure you've seen that one - Cern's Colt library had primitive lists and matrices even before trove emerged AFAICR.

Anton S. Kraievoy
+1  A: 

This comparision between java collection, trove and colt might be helpful.

Guy Sensei