Option to configure LZip dictionary size #493

Open
opened 2026-01-29 22:12:53 +00:00 by claunia · 1 comment
Owner

Originally created by @exyi on GitHub (Feb 9, 2022).

Hi! This is an awesome library btw :)

I'd like to increase the LZip dictionary size, the default seems to be only ~100 (not sure though), but I don't see any option to overwrite it.

It seems that it's only controlled in this code: https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Compressors/LZMA/LZipStream.cs#L43, so it seems reasonably simple to implement. Would you accept a PR for another new LZipStream() overload which would allow setting this parameter.

Originally created by @exyi on GitHub (Feb 9, 2022). Hi! This is an awesome library btw :) I'd like to increase the LZip dictionary size, the default seems to be only ~100 (not sure though), but I don't see any option to overwrite it. It seems that it's only controlled in this code: https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Compressors/LZMA/LZipStream.cs#L43, so it seems reasonably simple to implement. Would you accept a PR for another `new LZipStream()` overload which would allow setting this parameter.
Author
Owner

@adamhathcock commented on GitHub (Feb 10, 2022):

Of course. Reasonable changes are always excepted. Any change can be discussed!

@adamhathcock commented on GitHub (Feb 10, 2022): Of course. Reasonable changes are always excepted. Any change can be discussed!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#493