Off-heap hashmap for Java 8(github.com)
github.com
Off-heap hashmap for Java 8
https://github.com/cfelde/BinaryOffheapHashMap
1 comments
Maybe I'm mistaken about the code, but it doesn't look like HugeCollections is storing the key off heap?
Example: Looking at the containsKey method on line 420 here: https://github.com/OpenHFT/HugeCollections/blob/master/colle...
A return map.containsKey(key2) is used, with that map being declared as
final Map<K, DirectStore> map = new HashMap<K, DirectStore>();
on line 232. That makes me believe maybe only map values are kept off-heap?
Example: Looking at the containsKey method on line 420 here: https://github.com/OpenHFT/HugeCollections/blob/master/colle...
A return map.containsKey(key2) is used, with that map being declared as
final Map<K, DirectStore> map = new HashMap<K, DirectStore>();
on line 232. That makes me believe maybe only map values are kept off-heap?
[1] https://github.com/OpenHFT/HugeCollections [2] mapdb.org