Questions tagged [koloboke]

Questions regarding Koloboke collections Java library.

Koloboke is the Java library which provides high-performance collections on primitive types.

8 questions
5
votes
1 answer

Chronicle Map vs Redis vs Koloboke

We have a system where the same dataset(key-value pairs) is used across 50 servers. The number of updates to this dataset is approximately 1000 per hour and has to be replicated across these 50 servers. We have a master system which receives these…
5
votes
3 answers

Multi Key Maps - performance comparison

Context Our application stores lot's of data in memory in many different kinds of maps to allow fast lookups. To keep it simple (and not considering primitive maps) it's always a map with one or more keys. Performance is a big requirement for…
Milos Gregor
  • 940
  • 8
  • 14
2
votes
0 answers

Exception while creating koloboke map. (Internal Runtime Error) java.util.NoSuchElementException

I am hitting the following exception while I try to create a koloboke map. My map is something like this, private final HashObjObjMap> qosMap; qosMap = HashObjObjMaps.
1
vote
1 answer

Need an optimised Map(k,v) e.g. (long, long[]), to avoid auto boxing

I have a piece of code which is basically as followed: long[] ids; long[][] values; The values are filled out of turn i.e. if ids = ['id1','id2',...] the values maybe be values = [['id2val1','id2val2',..]['id1val1','id2val2',...],..] The out of…
gourab ghosh
  • 159
  • 6
1
vote
1 answer

Java HashObjObjMap vs HashMap

What is the difference between Koloboke HashObjObj and Java util HashMap? I am aware of the performance that Koloboke provides but there might be instances that K/V turn out to be a Integer/Long. Generally if known HashLongObjMap would…
sumsrv
  • 654
  • 3
  • 8
  • 25
1
vote
1 answer

Iterate Koloboke Hashmap while modifying it

I have a large hashmap (~3M entries) and am using Koloboke LongIntMap to implement it. I need to iterate the keys in the map, but be able to modify the map along the way. Some of the modifications may be structural (adding/deleting entries). I don't…
0
votes
0 answers

Why is Koloboke HashObjObjMaps collections so slow at putIfAbsent when using Longs as keys?

The following code shows that Koloboke HashHashObjs maps are very slow at putIfAbsent, is there a design flaw here? import com.koloboke.collect.map.hash.HashObjObjMaps; import java.util.HashMap; import java.util.Map; import…
torahmike
  • 420
  • 5
  • 10
0
votes
1 answer

Performance issues when copying between Koloboke sets

due to the way the iteration is performed and new entries are added, If one iterates over one set and copies to another set, the performance is very slow. Consider the following code snippet: final int num = (int) (1024 * 1024 * 2.1); …