netty5/transport
Norman Maurer 3db0128db9 [#2762] Not expand ByteBuffer[] in ChannelOutboundBuffer
Motivation:

At the moment we expand the ByteBuffer[] when we have more then 1024 ByteBuffer to write and replace the stored instance in its FastThreadLocal. This is not needed and may even harm performance on linux as IOV_MAX is 1024 and so this may cause the JVM to do an array copy.

Modifications:

Just exit the nioBuffers() method if we can not fit more ByteBuffer in the array. This way we will pick them up on the next call.

Result:

Remove uncessary array copy and simplify the code.
2014-08-13 11:59:20 +02:00
..
src [#2762] Not expand ByteBuffer[] in ChannelOutboundBuffer 2014-08-13 11:59:20 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2014-06-30 14:31:08 +02:00