deft icon indicating copy to clipboard operation
deft copied to clipboard

ByteBuffer pool

Open rschildmeijer opened this issue 14 years ago • 0 comments

The discoveries that were found in # 81 made me curios about introducing a ByteBuffer pool (experimental). Design aspects: Pool.allocate(int requestedCapacity) will always return a bb with capacity >= requestedCapacity. If no vacant bb is present a new bb will be allocated. To void ugly "!= null" checks in the "pool client" code.

The characteristics of the pool should be configurable by the end user (e.g max pool size, both by # of bb and by mb (total size) (inspired by memtable configuration in apache cassandra)).

rschildmeijer avatar Oct 27 '10 18:10 rschildmeijer