From subsecret
Jump to: navigation, search
No edit summary
Line 39: Line 39:


==Benchmark==
==Benchmark==
abc
JVM options: -Xms8g -Xmx8g
Insertions: 20 million
Removals: 6 million
Contains key: 4 million

Revision as of 12:30, 14 June 2013

Extension of Colt HashMap using Generics for storage of Objects

This is based on part of the code from Colt Project: http://acs.lbl.gov/software/colt/ The Colt Project is made before generics was introduced in Java. This means that the HashMap from Colt Project cannot be used as a drop-in replacement for Java's HashMap.

This version contains only the HashMap part of Colt Project (version 1.2.0) and adds the support for generics, so that it can now be used as a drop-in replacement for Java's HashHamp

Download

abc

Usage

Class Key type Value type
ColtIntHashMap Int Object
ColtIntIntHashMap Int Int
ColtIntIntHashMap Double Int
ColtLongHashMap Int Int
ColtLongHashMap Int Int

abc

Benchmark

JVM options: -Xms8g -Xmx8g Insertions: 20 million Removals: 6 million Contains key: 4 million