Optimize PooledUnsafeDirectByteBuf.newInternalNioBuffer()
- No need to produce garbage
This commit is contained in:
parent
d9806c8127
commit
7f7bf304b0
@ -71,7 +71,7 @@ final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
|
||||
|
||||
@Override
|
||||
protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) {
|
||||
return memory.duplicate();
|
||||
return memory;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user