Class ParallelOptions
Contents
[
Hide
]ParallelOptions class
Options for parallel compression.
public class ParallelOptions
Constructors
Name | Description |
---|---|
ParallelOptions() | The default constructor. |
Properties
Name | Description |
---|---|
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
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip