I’ve looked in the usual places (apache commons, google) and not been able to find one …
It should be opensource.
Pretty much looking for one based on a linked list. The use case is 10’000’s of maps, with not necessarily many values in. It does not need to scale up, as i can convert it when it gets too big.
Some numbers, sizes using some calculated jvm values (8bytes/java.lang.Object, 4bytes/ref) the HashMap is about 100+32n bytes, the theoretical best is 12+20*n. <– I want that, for small n.
Ok, implemented it myself in the end. I did a speed comparison, and found when compared to a HashMap that it was still slightly faster with 4 entries, but slower with 5 or more. I did the tests with a longish list of keys that I tried to give a similar makeup as a list of random english words.