Gerd Behrmann e329cc3524 ZeroCopyFrameDecoder: Optimize cumulation buffer compaction
Avoid calling CompositeChannelBuffer.decompose. A more efficient
frame deocder specific implementation is used that avoids some
of the cost of decomposing a CompositeChannelBuffer.

Added setMaxUnusedBufferCapacity to set a threshold. If a
cumulation buffer wastes more space than the threshold, the
decoder will resort to copying the buffer to free up the unused
space. The semantics are different from FrameDecoder's
setMaxCumulationBufferCapacity in that the threshold is for
unused space, not buffer capacity. This allows the copy of
large buffers to be avoided if only a small amount of space
is to be gained.

If a copy is invoked, only the actual fragment is copied, not
the complete cummulation buffer. This reduces the cost of
copying the buffer.
2012-06-19 22:41:47 +02:00
2012-03-02 12:03:46 -08:00
2012-06-04 13:35:22 -07:00
2009-03-04 10:33:09 +00:00
2009-08-28 07:15:49 +00:00
2011-12-09 14:31:04 +09:00
Description
No description provided
84 MiB
Languages
Java 99.8%
Shell 0.1%