GithubHelp home page GithubHelp logo

Comments (4)

tsolomko avatar tsolomko commented on July 19, 2024 2

LZ4 has been implemented in 4.7.0.

from swcompression.

tsolomko avatar tsolomko commented on July 19, 2024

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:

  1. 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.

  2. 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.

Diatrus avatar Diatrus commented on July 19, 2024

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.
image
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.

JimWallace avatar JimWallace commented on July 19, 2024

Thanks for this wonderful package – I just wanted to drop in to +1 the request for ZSTD

from swcompression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.