netty5/codec
Norman Maurer 3d7dba373f
Eliminate unnessary copy of ByteBuf on ByteToMessageDecoder removal (#9662)
Motivation:

At the moment we do a ByteBuf.readBytes(...) on removal of the ByteToMessageDecoder if there are any bytes left and forward the returned ByteBuf to the next handler in the pipeline. This is not really needed as we can just forward the cumulation buffer directly and so eliminate the extra memory copy

Modifications:

Just forward the cumulation buffer directly on removal of the ByteToMessageDecoder

Result:

Less memory copies
2019-10-16 06:47:59 -07:00
..
src Eliminate unnessary copy of ByteBuf on ByteToMessageDecoder removal (#9662) 2019-10-16 06:47:59 -07:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-09-25 06:15:31 +00:00