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

add compression #20

Open
mcginty opened this issue Aug 3, 2016 · 3 comments
Open

add compression #20

mcginty opened this issue Aug 3, 2016 · 3 comments

Comments

@mcginty
Copy link
Owner

mcginty commented Aug 3, 2016

Snappy or LZ4 comes to mind: https://github.com/BurntSushi/rust-snappy, https://github.com/bozaro/lz4-rs

@lunemec
Copy link

lunemec commented Aug 3, 2016

Ideal would be something that can compress the stream in multiple threads to achieve highest throughput. This could be tested for both libraries though.

@rmmh
Copy link

rmmh commented Aug 6, 2016

Note that the best compressor to use depends on the particular combination of compression speed, bandwidth, and decompression speed. Single-threaded zlib is better than LZ4 at <~5MB/s, ZSTD is the best at <32MB/s (but doesn't have a pure-rust implementation), etc.

Some more details and theory here: http://fastcompression.blogspot.com/2015/01/zstd-stronger-compression-algorithm.html

@mcginty
Copy link
Owner Author

mcginty commented Aug 8, 2016

The crypto is currently not much of a bottleneck, so I think it's also wondering how much we want to burn the laps of our users :).

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

No branches or pull requests

3 participants