Skip to content

Consider usage of zero copying approach in async client #151

@kptfh

Description

@kptfh

Here is the two points where byte[] get copied:

  1. NettyCommand.writeByteBuffer
    Avoid byteBuffer.writeBytes(command.dataBuffer, 0, command.dataOffset);
    Try to wrap command.dataBuffer with io.netty.buffer.Unpooled.wrappedBuffer()

  2. NioCommand.writeCommand
    Avoid usage of byteBuffer.put(command.dataBuffer, 0, command.dataOffset);
    Try to use command.dataBuffer directly instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions