forked from snazy/ohc
/
CHANGES.txt
138 lines (107 loc) · 4.03 KB
/
CHANGES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
0.6.1
=====
- update maven plugin versions
- update jmh version
#34 add WTinyLFU
#37 non-evicting mode
- unit test fixes for systems with few CPUs
- unit test fix regarding charset
0.6.0
=====
BREAKING CHANGES
----------------
- If entry TTLs are used, it is required to configure the cache with OHCacheBuilder.timeouts(true)
- Signatures of OHCache.put() and OHCache.remove() methods has been changed to return a boolean value.
This means that this version of OHC requires a recompilation of code that uses OHC and cannot be
used as a drop-in replacement (i.e. just replace a jar).
non-breaking changes
--------------------
(#37 non-evicting mode) - not merged by accident
(#34 add WTinyLFU) - not merged by accident
- add new builder cache flag 'timeouts'
- add Ticker interface
(- unit test fixes for systems with few CPUs) - not merged by accident
(- unit test fix regarding charset) - not merged by accident
- update to guava 18.0
#33 crc32 algorithm does not work on Java7
0.5.1
=====
#45 chunked implementation: fix descruction of off-heap-maps on initialization failure
#44 chunked implementation: fix wrong size calculation on eviction
#32 chunked implementation: allow remove() on returned iterators & do not return removed entries
0.5.0
=====
#30 fix hash table size check for extreme hash table sizes
#27 replace ReentrantLock with CAS
#26 add chunked implementation
#13 remove tables implementation
0.4.5
=====
#23 getWithLoader needs contract for null/non-existant values
- extend javadoc to explain API contracts
- fix java.version check for Java 9 EA builds
0.4.4
=====
#20 TTL support for entries
#9 allow unsynchronized access
#19 iterator may keep entries referenced if iterator is closed before exhausted
#17 Checking for java 8 fails
0.4.3
=====
#18 Allow skipping LRU stats updates in getDirect()
0.4.2
=====
- use Java byte order instead of native byte order for keys and values
0.4.0
=====
#15 Refactor serialization to use java.nio.ByteBuffer instead of streams
0.3.6
=====
#11 add putIfAbsentDirect() and addOrReplaceDirect()
#12 check test coverage of direct methods
0.3.5
=====
#10 OHC fails to load on 1.7 Zing VM (also https://issues.apache.org/jira/browse/CASSANDRA-9296)
0.3.4
=====
#5 add CRC32 and xx-hash as alternative hash algorithms
- use Unsafe to allocate DirectByteBuffer
- Update to recent Maven plugins
0.3.3
=====
- remove jemalloc via JNA Library allocator
- make JNA Native.malloc the default memory allocation strategy
0.3.2
=====
#2 implement direct buffer access to cached values
- added some support for unattended batch of benchmarks
- don't print whole exception message if jemalloc cannot be found (only if debug logging is enabled)
0.3.1
=====
- change system property name from DISABLE_JEMALLOC to org.caffinitas.ohc.disableJEmalloc
- change system property name from DEBUG_OFF_HEAP_MEMORY_ACCESS to org.caffinitas.ohc.debugOffHeapAccess
- add option OHCacheBuilder to throw OutOfMemoryError when off-heap memory-allocation fails
0.3
===
- remove cassandra-all dependency from ohc-benchmark
- do not deploy big binary ohc-benchmark and ohc-jmh artifacts to Maven Central
- change scope of snappy dependency in ohc-core to provided
- benchmark: add new command line option to specify key length (-kl)
- fix murmur3 hashing
- divide overall capacity to all segments and manage free capacity inside segments
- allow use of native malloc()/free() functions via JNA Native class
- allow to specify preferred memory allocation via system property "org.caffinitas.ohc.allocator"
- allow to specify defaults of OHCacheBuilder via system properties prefixed with "org.caffinitas.org."
- max entry size segment defaults to capacity per segment
- remove fastutil dependency
#3 support cache-loader functionality
- some dependency cleanups in pom.xml files
- benchmark: make metrics in local to the driver threads
- benchmark: disable bucket histogram in stats by default
- default minimum capacity changed to 64MB
0.2.1
=====
#1: KeyBuffer class failed for serialized key size of 16 and multiples of 16
0.2
===
intial release on Maven Central