> On 18 Jan 2015, at 09:18, Sean Owen <[email protected]> wrote:
> 
> FWIW I prefer Koloboke at this stage. Fastutil is Apache licensed, both
> are. The only drawback is the massive size of the dependency.

Huh? Koloboke's implementation jar is *larger* than fastutil's! Check on Maven 
Central.

In the typical range of sparse vectors, fastutil is also slightly faster.

tests.maptests.prim_object.FastUtilIntObjectMapTest (10000) = 796.4631357999999
tests.maptests.prim_object.HftcIntObjectMapTest (10000) = 901.6948074
tests.maptests.prim_object.FastUtilIntObjectMapTest (100000) = 1109.0534656
tests.maptests.prim_object.HftcIntObjectMapTest (100000) = 1172.1181604

(This are get() calls on int -> Object maps, performance on int -> doubles will 
be equivalent).

The difference might vanish soon though, as after the java-performance.info 
tests everybody is looking at everybody else's code.

Ciao,

                                        seba

Reply via email to