tsolomko / SWCompression

A Swift framework for working with compression, archives and containers.
MIT License
225 stars 36 forks source link

Brotli Support? #36

Open gustavneustadt opened 1 year ago

gustavneustadt commented 1 year ago

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!

tsolomko commented 1 year ago

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.

gustavneustadt commented 1 year ago

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.