CodecBufferSize Property

DotNetZip

Ionic Zip Library v1.9.1.6 CodecBufferSize Property
ReferenceIonic.ZipZipFileCodecBufferSize
Size of the work buffer to use for the ZLIB codec during compression.
Declaration Syntax
C# Visual Basic Visual C++
public int CodecBufferSize { get; set; }
Public Property CodecBufferSize As Integer
	Get
	Set
public:
property int CodecBufferSize {
	int get ();
	void set (int value);
}
Remarks

When doing ZLIB or Deflate compression, the library fills a buffer, then passes it to the compressor for compression. Then the library reads out the compressed bytes. This happens repeatedly until there is no more uncompressed data to compress. This property sets the size of the buffer that will be used for chunk-wise compression. In order for the setting to take effect, your application needs to set this property before calling one of the ZipFile.Save() overloads.

Setting this affects the performance and memory efficiency of compression and decompression. For larger files, setting this to a larger size may improve compression performance, but the exact numbers vary depending on available memory, the size of the streams you are compressing, and a bunch of other variables. I don't have good firm recommendations on how to set it. You'll have to test it yourself. Or just leave it alone and accept the default.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)