Comments (4)
LZ4 has been implemented in 4.7.0.
from swcompression.
Well, this is a good question. General answer: yes, it is possible to add these algorithms at some point in the future (disregarding any unforeseen implementation difficulties which may prevent doing so). I also have some additional thoughts about each of these two algorithms:
-
ZSTD. I did consider some time ago implementing Zstandard, but I found that there was an existing Swift library with an implementation of ZSTD, so I wasn't sure if there was any point in reimplementing it here, in SWCompression. I haven't looked into it thoroughly so I don't know if that library was a native Swift implementation or just a wrapper over the reference implementation. If it is the latter then there is still some potential value in implementing it in pure Swift, since this is the stated goal of SWCompression after all. I also have no idea what is the current status of that library, and, to be fair, I don't even remember its name.
-
LZ4. Honestly, I've never thought about implementing it, since I don't know if/where it is even used (nowadays or in the past). How would you use it personally?
from swcompression.
Regarding the first point, if the library you are referencing is this, it is just a wrapper around preexisting Zstandard code rather than a pure Swift implementation.
Regarding the second point, LZ4 shines in decompression speeds.
The use-case for lz4 is the need for extremely quick decompression of rather large files. While LZ4 would be great to have, I wouldn't personally find as much use in it as I would Zstandard. It is a relatively niche compression algorithm with a very specific use-case: nearly unnoticeable decompression times for large files.
To the point of personal use at the moment: I'm a developer for Sileo where we use SWCompression thanks to its pure Swift implementation of various compression algorithms and was hoping to implement ZSTD support, but noticed it was missing from this framework.
from swcompression.
Thanks for this wonderful package β I just wanted to drop in to +1 the request for ZSTD
from swcompression.
Related Issues (20)
- Progress when decompression is needed HOT 1
- Memory issues when working with larger files HOT 8
- [CRASH] MsbBitReader.bit() HOT 4
- AR Format Support HOT 7
- Can Gzip unarchive return Member? HOT 1
- GzipArchive.unarchive wrongMagic for short data HOT 1
- Brotli Support? HOT 2
- Symlinks in tarballs are created with absolute paths HOT 3
- BZip2Error.wrongCRC when decompressing HOT 2
- Support File I/O for large archives and resource-constrained environments
- Error when decompressing a certain 7z file HOT 2
- Some zip files can't be extracted HOT 2
- LZ4 format not compatible? HOT 8
- Compiling for watchOS fails HOT 1
- LZ4 decompress speed HOT 10
- Support splitting zips into multiple files
- Is there a way to extract a single file from a 7z compressed archive? HOT 4
- LZFSE Support
- Please update BitByteData dependency HOT 6
- Crash during GzipArchive.unarchive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swcompression.