Skip to content

ClickhouseLZ4OutputStream can override write method with buffer #521

Description

@azsane

ClickhouseLZ4OutputStream only implements write method with signature void write(int b)
but caller invokes write(byte[] buffer,int offset,int len) method

default implementation of this method is defined in parent class OutputStream calling write(int b)
hence will copy byte by byte to the currentBlock buffer

override write method and use System.arraycopy should improve peformance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions