cowtowncoder/low-gc-membuffers — Issue #11: Add alternative Segment impl that uses simple byte arrays
Author: cowtowncoder
Created: 2012-01-02 04:20:05+00:00
State: open

Although ByteBuffers are optimal from minimal garbage collection perspective, there are cases where using small number of large byte arrays works pretty well. And since ByteBuffers can have their downsides (wrt clean up, limitations, platform-specific issues), it seems reasonable to allow alternate implementation.
Such implementation is likely to work best when entries are short and total buffer length moderate.