Document ways to set the compression level #4

Closed
opened 2024-09-22 13:44:50 +02:00 by mimi89999 · 2 comments
mimi89999 commented 2024-09-22 13:44:50 +02:00 (Migrated from github.com)

Hello,

Would it be possible to document the way in which the compression level can be set?

Hello, Would it be possible to document the way in which the compression level can be set?
ColinTimBarndt commented 2024-09-26 03:29:10 +02:00 (Migrated from github.com)

It is currently not possible to specify the compression level. Libflate, which this library is wrapping, only provides one LZ77 encoder for compression. At the moment, the default window size of it is the maximum (32768), so it is using the best compression level.

I could make the window size configurable and allow choosing a worse but faster compression that requires less memory. Is this what you're after?

It is currently not possible to specify the compression level. Libflate, which this library is wrapping, only provides [one LZ77 encoder for compression](https://docs.rs/libflate/latest/libflate/lz77/struct.DefaultLz77EncoderBuilder.html). At the moment, the default window size of it is the maximum (32768), so it is using the best compression level. I could make the window size configurable and allow choosing a worse but faster compression that requires less memory. Is this what you're after?
mimi89999 commented 2024-09-26 09:33:54 +02:00 (Migrated from github.com)

Actually, I was looking for the best compression level. Since this is what the library is already doing, I don't need any options.

Actually, I was looking for the best compression level. Since this is what the library is already doing, I don't need any options.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Colin/wasm-gzip#4
No description provided.