Skip to content
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

LZ4 optimized one-shot compression #9

Closed
sethloco opened this issue Oct 9, 2020 · 1 comment
Closed

LZ4 optimized one-shot compression #9

sethloco opened this issue Oct 9, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sethloco
Copy link
Collaborator

sethloco commented Oct 9, 2020

The streaming buffers version that we have right now is pretty performant in Dart.
However, if you have all the bytes up front...then it certainly could have the potential to be even faster (at the expense of larger in-memory buffers).

The VAST Platform implements an optimized version by extensions on ByteArray/String like lz4Compress/lz4Decompress.
In a 455MB example (linux-3.3.tar), the lz4Compress was 1.2 seconds in-memory and the streaming was 2.2 seconds.

I believe we can do something similar here whenever encode()/decode() is called.

@sethloco sethloco added the scheduled item Accepted required work task label Oct 9, 2020
@sethloco sethloco added this to the Initial Pub.dev release milestone Oct 9, 2020
@sethloco sethloco self-assigned this Oct 9, 2020
@sethloco sethloco changed the title LZ4 Full in-memory compression option LZ4 optimized one-shot compression Oct 22, 2020
@sethloco sethloco added the enhancement New feature or request label Oct 22, 2020
@sethloco sethloco removed this from the Initial Pub.dev release milestone Oct 22, 2020
@sethloco sethloco removed the scheduled item Accepted required work task label Oct 22, 2020
@sethloco
Copy link
Collaborator Author

sethloco commented Nov 2, 2020

Waiting to see if Dart FFI will support passing in Dart Heap Allocated buffers to C-functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant