ParallelOptions Class

Options for parallel compression.
Inheritance Hierarchy
SystemObject
  Aspose.Zip.SavingParallelOptions

Namespace:  Aspose.Zip.Saving
Assembly:  Aspose.Zip (in Aspose.Zip.dll) Version: 22.1
Syntax
public class ParallelOptions

The ParallelOptions type exposes the following members.

Constructors
  NameDescription
Public methodParallelOptions
Initializes a new instance of the ParallelOptions class
Properties
  NameDescription
Public propertyAvailableMemorySize
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.
Public propertyParallelCompressInMemory
Gets or sets value indicating how parallel approach to be used.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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 = mode, AvailableMemorySize = 4000 } });
}
See Also