Add support for zstd as a compression algorithm #164

Closed
opened 2026-01-29 22:07:39 +00:00 by claunia · 7 comments
Owner

Originally created by @extesy on GitHub (Apr 18, 2017).

Zstandard (also known as zstd) has a great speed and compression ratio tradeoff. It also has a backing of a huge company (Facebook) and its repo is very active. I would love to be able to use zstd with configurable compression strength in SharpCompress. On its highest setting it is comparable to PPMd for compression ratio, but faster.

Originally created by @extesy on GitHub (Apr 18, 2017). [Zstandard](https://github.com/facebook/zstd) (also known as zstd) has a great speed and compression ratio tradeoff. It also has a backing of a huge company (Facebook) and its repo is very active. I would love to be able to use zstd with configurable compression strength in SharpCompress. On its highest setting it is comparable to PPMd for compression ratio, but faster.
claunia added the enhancementup for grabs labels 2026-01-29 22:07:39 +00:00
Author
Owner

@adamhathcock commented on GitHub (Apr 18, 2017):

It would be cool but this is something I'm personally unwilling to do. In fact I didn't port any algorithm since the original RAR.

Looking at their page there is a full java decoder that could be ported to C#. I wouldn't want just a wrapper of the native DLL in sharpcompress as that's not all platforms.

@adamhathcock commented on GitHub (Apr 18, 2017): It would be cool but this is something I'm personally unwilling to do. In fact I didn't port any algorithm since the original RAR. Looking at their page there is a full java decoder that could be ported to C#. I wouldn't want just a wrapper of the native DLL in sharpcompress as that's not all platforms.
Author
Owner

@samuel-w commented on GitHub (May 8, 2021):

I found a partial implementation of it, compression only. https://github.com/mcraiha/CSharp-zstd

@samuel-w commented on GitHub (May 8, 2021): I found a partial implementation of it, compression only. https://github.com/mcraiha/CSharp-zstd
Author
Owner

@adamhathcock commented on GitHub (Jun 4, 2021):

Thanks. Keeping this open

@adamhathcock commented on GitHub (Jun 4, 2021): Thanks. Keeping this open
Author
Owner

@samuel-w commented on GitHub (Aug 7, 2021):

I found another one, seems to have both compress and decompress https://github.com/oleg-st/ZstdSharp

@samuel-w commented on GitHub (Aug 7, 2021): I found another one, seems to have both compress and decompress https://github.com/oleg-st/ZstdSharp
Author
Owner

@adamhathcock commented on GitHub (Nov 28, 2021):

Got an itch and started

Compression from: https://github.com/oleg-st/ZstdSharp
File format from the RFC: https://datatracker.ietf.org/doc/html/rfc8878#section-3.1
WIP here: https://github.com/adamhathcock/sharpcompress/pull/627

@adamhathcock commented on GitHub (Nov 28, 2021): Got an itch and started Compression from: https://github.com/oleg-st/ZstdSharp File format from the RFC: https://datatracker.ietf.org/doc/html/rfc8878#section-3.1 WIP here: https://github.com/adamhathcock/sharpcompress/pull/627
Author
Owner

@Nanook commented on GitHub (Jul 24, 2025):

@adamhathcock, can this be closed?

@Nanook commented on GitHub (Jul 24, 2025): @adamhathcock, can this be closed?
Author
Owner

@adamhathcock commented on GitHub (Jul 25, 2025):

Yup!

@adamhathcock commented on GitHub (Jul 25, 2025): Yup!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#164