netty5/buffer/src
Trustin Lee f1c757c089 Use heap buffers for Unpooled.copiedBuffer()
Related issue: #2028

Motivation:

Some copiedBuffer() methods in Unpooled allocated a direct buffer.  An
allocation of a direct buffer is an expensive operation, and thus should
be avoided for unpooled buffers.

Modifications:

- Use heap buffers in all copiedBuffer() methods

Result:

Unpooled.copiedBuffers() are less expensive now.
2014-08-13 15:09:41 -07:00
..
main/java/io/netty/buffer Use heap buffers for Unpooled.copiedBuffer() 2014-08-13 15:09:41 -07:00
test/java/io/netty/buffer [#2653] Remove unnecessary ensureAccessible() calls 2014-07-14 21:04:21 +02:00