PeachImage

PeachImage.DecoderOptions

DecoderOptions.MaxDegreeOfParallelism Property

The most threads one decode call may use. -1 (the default) leaves it to the library, which fans out over up to System.Environment.ProcessorCount workers; 1 decodes sequentially on the calling thread. The limit is per call, not global: concurrent calls each use up to this many, so a server decoding uploads should set a low value and/or share a TaskScheduler. Does not change the output.

public int MaxDegreeOfParallelism { get; init; }

Property Value

System.Int32