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

Feature suggestion: switch compression algorithm for level 3? #2

Open
M-Gonzalo opened this issue Oct 25, 2023 · 1 comment
Open

Feature suggestion: switch compression algorithm for level 3? #2

M-Gonzalo opened this issue Oct 25, 2023 · 1 comment

Comments

@M-Gonzalo
Copy link

bzip2 is by now long superseded by other algorithms that provide better ratios for a fraction of the cost in terms of CPU, cspeed and dspeed.

Some alternatives are lzma, lzma2, and fast-lzma2, an lzma2 version with a fast match finder based on a radix sort. It can compress about ~2 - 3x times faster than lzma2, use much less memory, and efficiently utilize all CPU threads available for a negligible increase in memory (as opposed to conventional xz algorithms where every thread needs to have its own memory pool). The drawback is some ~1 - 2% less compression for single-threaded applications (but can have a much better ratio with big blocks compressed using several threads).
Decompression speed is about the same as lzma2.

https://github.com/conor42/fast-lzma2

@rrrlasse
Copy link
Owner

You're right and that's definitely on the todo-list :)

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

2 participants