SWCompression icon indicating copy to clipboard operation
SWCompression copied to clipboard

Brotli Support?

Open gustavneustadt opened this issue 3 years ago • 2 comments

Are there plans for Brotli Support? This or that may be helpful.

Or are there compatible formats or other ways to use Brotli in Swift?

Thanks. Keep up the great work!

gustavneustadt avatar Sep 01 '22 08:09 gustavneustadt

Are there plans for Brotli Support? This or that may be helpful.

No, unfortunately, at the moment there are no such plans, partially because I was not aware of Brotli existence. I will add its support to the ever-growing todo list.

Or are there compatible formats or other ways to use Brotli in Swift?

Thanks. Keep up the great work!

While, from what I understand, algorithmically Brotli consists of commonly used parts such as LZ77 and Huffman, since the metadata format is unique, I don't think there is any compatibility with other formats. I am also not aware of any existing implementations of Brotli in Swift.

Thank for your kind words and your suggestion, though.

tsolomko avatar Sep 04 '22 12:09 tsolomko

In my current project I now use karlvr/Brotli. Maybe its worth a look.

Brotli is used in woff2 font format. Seems like it was designed for web applications. May be it gets implemented in the future in more and more data formats.

Edited: wrong library.. oops.

gustavneustadt avatar Sep 04 '22 12:09 gustavneustadt