Terracotta-OSS / offheap-store

A library that provides a set of map and cache implementations that store data outside of the normal Java heap
Apache License 2.0
90 stars 46 forks source link

FileBackedStorageEngine chunk sizing approach makes shrinking costly - lets fix this. #31

Closed chrisdennis closed 8 years ago

chrisdennis commented 8 years ago

Currently FileBackedStorageEngine sizes each new chunk as twice the size of it's predecessor. This means shrinking currently requires freeing half of all stored entries. We should consider changing this to some scheme where chunk sizes are capped so that shrink can have a less drastic implementation.