simerplaha / SwayDB

Persistent and in-memory key-value storage engine for JVM that scales on a single machine.
https://swaydb.simer.au
Apache License 2.0
293 stars 16 forks source link

BlockCache bytes should be transferable when Segments are partially or fully transferred onto another file. #290

Closed simerplaha closed 3 years ago

simerplaha commented 4 years ago

This change would result in performance improvement because we will make less frequent changes to the cached state of the SegmentRef which would also reduce GC workload because large cached bytes (cacheCapacity) are not discarded.