Go to file
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
lib Fix Javadoc generation 2012-03-02 12:03:46 -08:00
license Update notices for WebSocket support. 2011-12-09 16:15:41 +11:00
src ZeroCopyFrameDecoder: Optimize cumulation buffer compaction 2012-06-19 22:41:47 +02:00
.fbfilter.xml Update license headers 2012-06-04 13:35:22 -07:00
.fbprefs Updated Find Bugs configuration 2009-03-04 10:33:09 +00:00
.gitignore Backport post request body and file upload to 3.x branch 2012-04-26 10:44:37 +10:00
LICENSE.txt Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
NOTICE.txt More license updates 2011-12-09 14:31:04 +09:00
pom.xml Sorry.. bad revert "Revert "Merge branch '3' of ssh://github.com/netty/netty into 3"" 2012-06-11 12:49:32 +02:00