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 bzip3 and LZ4 support #98

Merged
merged 2 commits into from
Feb 2, 2025
Merged

Conversation

sorairolake
Copy link
Contributor

bzip3 is a better, faster and stronger spiritual successor to bzip2. This is available in the official repositories of many systems:

Packaging status

LZ4 is a lossless compression algorithm that is focused on compression and decompression speed. This is used in many system software. This is available in the official repositories of many systems:

Packaging status

archive::is_lz4 does not support legacy formats (support v1.4+ only). This is similar to archive::is_zst. The magic number was changed almost 10 years ago, so it doesn't matter for practical purposes.

I don't know how to generate skippable frames, so I haven't tested it. However, skippable frames in Zstandard are compatible with skippable frames in LZ4.1 Since archive::is_lz4 is based on archive::is_zst, so this should work fine.

Resources

Footnotes

  1. https://datatracker.ietf.org/doc/html/rfc8878#section-3.1.2

@bojand bojand merged commit cbf3b9e into bojand:master Feb 2, 2025
@sorairolake sorairolake deleted the feature/archives branch February 2, 2025 08:00
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

Successfully merging this pull request may close these issues.

2 participants