-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(java): support meta compression by Zstd #1696
base: main
Are you sure you want to change the base?
Conversation
@chaokunyang hi, if there have anything need modify, please let me know. |
Seems the interface is pretty simple, could we use reflection instead, in such ways, users doesn't need to include another dependency |
byte[] decompressData = new byte[size]; | ||
System.arraycopy(data, offset, decompressData, 0, size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
byte[] decompressData = new byte[size]; | |
System.arraycopy(data, offset, decompressData, 0, size); | |
byte[] decompressData = Arrays.copyOfRange(data, offset, offset + size); |
System.arraycopy(data, offset, decompressData, 0, size); | ||
|
||
byte[] buffer = new byte[(int) Zstd.getFrameContentSize(decompressData)]; | ||
Zstd.decompress(buffer, decompressData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems not used
What does this PR do?
support meta compression by Zstd
Related issues
#1664
Does this PR introduce any user-facing change?
Benchmark