Search before asking
Description
Netty has already introduced COMPOSITE_CUMULATOR to eliminate memory copy in ByteToMessageDecoder (netty/netty#3299)
CBB(CompositeByteBuf) has very inefficient indexing mechanism compared to other
ByteBuf impls, so it's basically trade-off between calculation
complexity and memory bandwidth.
But we don't use indexing for ByteBuf, and will read as heap memory in NettyClientHandler. Thus I advice that inner client still use MERGE_CUMULATOR while user client use COMPOSITE_CUMULATOR to reduce useless memory copy.
Willingness to contribute