Best values for lgwin and lgblock? #62

Open
opened 2026-01-29 20:30:47 +00:00 by claunia · 0 comments
Owner

Originally created by @MacGritsch on GitHub (Oct 28, 2015).

Hi,

how can I calculate the best values for lgwin and lgblock?
If I use the default values to compress a buffer with only a few KB, brotli allocates 8 MB for the ringbuffer.
I think this makes no sense, so wouldnt it be a good idea to calculate the two values depending on the size of the data that should be compressed?

thx

Originally created by @MacGritsch on GitHub (Oct 28, 2015). Hi, how can I calculate the best values for lgwin and lgblock? If I use the default values to compress a buffer with only a few KB, brotli allocates 8 MB for the ringbuffer. I think this makes no sense, so wouldnt it be a good idea to calculate the two values depending on the size of the data that should be compressed? thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#62