New branch of the former Feature/storage unit persists automatically.
Closes #102
Some experiments (code):
MovablePersistentStorage pss = new MovablePersistentStorage(Paths.get("E://"));
DateTime start = DateTime.now();
for(int i = 0; i < 400; ++i){
pss.putEntry(new KVEntry(String.valueOf(i), String.valueOf(i)));
}
for(int i = 0; i < 250; ++i){
pss.removeEntry(String.valueOf(i));
}
for(int i = 250; i < 390; ++i){
pss.removeEntry(String.valueOf(i));
}
pss.defragment();
DateTime end = DateTime.now();
System.out.println(end.getMillis() - start.getMillis());
System.out.println(Seconds.secondsBetween(start, end));
Average runtime in milliseconds if storage units are not persisted after every operation: 1159
Average runtime in milliseconds if storage units are persisted after every operation: 2362
Before merge, please have a look at #217.
Feature/storage unit persists automatically
.Some experiments (code):
Average runtime in milliseconds if storage units are not persisted after every operation: 1159 Average runtime in milliseconds if storage units are persisted after every operation: 2362