Oak
ohc
Our great sponsors
Oak | ohc | |
---|---|---|
2 | 2 | |
266 | 1,034 | |
0.0% | - | |
0.0 | 1.9 | |
3 months ago | 10 months ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Oak
-
JEP draft: 64 bit object headers
Another to add to your collection, https://github.com/yahoo/Oak
-
Solution for hash-map with >100M values
Consider using an database (e.g. H2 embedded, redis) with an on-heap cache (e.g. Caffeine). Since you say it is a Zipfian distribution, the cache should absorb most of the requests. For an off-heap hashtable, you might try Oak as it is likely a faster implementation.
ohc
-
GC, hands off my data!
I decided to start with an overview of what open-source options are currently available. When it comes to the implementation of the on-heap cache mechanism, the options are numerous – there is well known: guava, ehcache, caffeine and many other solutions. However, when I began researching cache mechanisms offering the possibility of storing data outside GC control, I found out that there are very few solutions left. Out of the popular ones, only Terracotta is supported. It seems that this is a very niche solution and we do not have many options to choose from. In terms of less-known projects, I came across Chronicle-Map, MapDB and OHC. I chose the last one because it was created as part of the Cassandra project, which I had some experience with and was curious about how this component worked:
- JEP draft: 64 bit object headers
What are some alternatives?
MapDB - MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
lasher - Lasher is an embeddable key-value store written in Java.
Chronicle Map - Replicate your Key Value Store across your network, with consistency, persistance and performance.
SmoothieMap - A gulp of low latency Java
FST - FST: fast java serialization drop in-replacement
java-concurrent-hash-trie-map - Java port of a concurrent trie hash map implementation from the Scala collections library
JDK - JDK main-line development https://openjdk.org/projects/jdk
Apache JMeter - Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
Caffeine - A high performance caching library for Java