Sitelet https://github.com/lz4/lz4-java/issues/106
Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Support for Memory classes in lz4-java #106

Description

@niketh

Druid is a open source datastore which uses Lz4-java for fast compression. We are moving our implementation from ByteBuffer to Memory . Memory provides the following benefits over ByteBuffer

  • Faster reads/writes than ByteBuffer
  • Allows us to address files/memory greater than 2GB
  • Gets rid of endianess problems with ByteBuffers

I was thinking of adding an extra interface which woud decompress memory and has an interface like this:
decompress(Memory src, int srcOff, WritableMemory dest, int destOff, int destLen);

Would you be open to discussing such a change?

Cc: @leerho

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

    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