SevenZipLZMA2CompressionSettings

SevenZipLZMA2CompressionSettings constructor (1 of 2)

Instantiates settings for LZMA2 compression method within 7z archive.

public SevenZipLZMA2CompressionSettings(int dictionarySize = 16777216)
ParameterTypeDescription
dictionarySizeInt32Size of history buffer, must be between 4096 and 1073741824.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptiondictionarySize is too big or too small.

Remarks

The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM.

See Also


SevenZipLZMA2CompressionSettings constructor (2 of 2)

Instantiates settings for LZMA2 compression method within 7z archive.

public SevenZipLZMA2CompressionSettings(int dictionarySize, int fastBytes = 32)
ParameterTypeDescription
dictionarySizeInt32Size of history buffer, must be between 4096 and 1073741824.
fastBytesInt32Controls number of fast bytes used by the LZMA2 compressors. A larger number of fast bytes can provide a better compression ratio at the expense of compression speed.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptiondictionarySize is too big or too small, or fastBytes is too big or too small.

Remarks

The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM.

See Also