fixed latency issues with CheckedBytesStore

This commit is contained in:
Rob Austin
2015-02-02 14:58:03 +00:00
parent 5c48504f0c
commit 9001e68bc0
@@ -232,10 +232,10 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
final long createMappedStoreAndSegments(BytesStore bytesStore) throws IOException {
// checks the the store has not been closed
// todo remove the CheckedBytesStore before the release
//this.ms = new CheckedBytesStore(bytesStore);
this.ms = new CheckedBytesStore(bytesStore);
this.ms = bytesStore;
// this.ms = bytesStore;
onHeaderCreated();
@@ -533,13 +533,13 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
}
@Override
public final V putIfAbsent( K key, V value) {
if (key == null )
public final V putIfAbsent(K key, V value) {
if (key == null)
throw new NullPointerException();
return put1(key, value, false);
}
V put1( K key, V value, boolean replaceIfPresent) {
V put1(K key, V value, boolean replaceIfPresent) {
if (key == null)
throw new NullPointerException();
checkKey(key);