mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Add support for zstd as a compression algorithm #164
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@samuel-w commented on GitHub (May 8, 2021):
I found a partial implementation of it, compression only. https://github.com/mcraiha/CSharp-zstd
@adamhathcock commented on GitHub (Jun 4, 2021):
Thanks. Keeping this open
@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
@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
@Nanook commented on GitHub (Jul 24, 2025):
@adamhathcock, can this be closed?
@adamhathcock commented on GitHub (Jul 25, 2025):
Yup!