netty5/codec/src
Cristian b8d26d1da3 Avoid unnecessary call to ByteBuf.isReadable() from ByteToMessageDecoder
Motivation:

This will avoid one unncessary method invokation which will slightly improve performance.

Modifications:

Instead of calling isReadable we just check for the value of readableBytes()

Result:

Nothing functionally speaking change.
2015-02-16 07:37:20 +01:00
..
main/java/io/netty/handler/codec Avoid unnecessary call to ByteBuf.isReadable() from ByteToMessageDecoder 2015-02-16 07:37:20 +01:00
test Ensure channelReadComplete() is called only when necessary 2015-02-07 16:13:56 +09:00