Motivation: At the moment we create a new ChannelFutureListener per chunk when trying to write these to the underlying transport. This can be optimized by replacing the seperate write and flush call with writeAndFlush and only allocate the listener if the future is not complete yet. Modifications: - Replace seperate write and flush calls with writeAndFlush - Only create listener if needed, otherwise execute directly Result: Less allocations |
||
---|---|---|
.. | ||
src | ||
pom.xml |