Class ParallelOptions

ParallelOptions class

Options for parallel compression.

public class ParallelOptions

Constructors

NameDescription
ParallelOptions()The default constructor.

Properties

NameDescription
AvailableMemorySize { get; set; }Gets or sets memory estimate in megabytes available to accomodate compressed entries without swap to disk. This value only makes sense if ParallelCompressInMemory setting is in Auto mode.
ParallelCompressInMemory { get; set; }Gets or sets value indicating how parallel approach to be used.

Remarks

These options manage simultaneous compression by several CPU cores.

Examples

using (var archive = new Archive())
{
    archive.CreateEntries("DirToCompress");
    archive.Save("archive.zip", new ArchiveSaveOptions() { ParallelOptions = new ParallelOptions { ParallelCompressInMemory = ParallelCompressionMode.Auto, AvailableMemorySize = 4000 } });
}

See Also