Table of Contents

Class ParallelWriteOptions

Namespace
ExcelReader.Core.Writer
Assembly
ExcelReader.Core.dll

Configures the parallel record writes of ParallelSheetWriterExtensions.

public sealed class ParallelWriteOptions
Inheritance
ParallelWriteOptions
Inherited Members

Properties

BatchRows

Gets the number of rows per batch. Each batch in flight holds its formatted rows and their compressed form, so this and DegreeOfParallelism bound the memory used.

public int BatchRows { get; init; }

Property Value

int

Default

Gets the default options: one batch in flight per processor, 8,192 rows per batch.

public static ParallelWriteOptions Default { get; }

Property Value

ParallelWriteOptions

DegreeOfParallelism

Gets the most batches formatted and compressed at once. 0, the default, means ProcessorCount. With 1 the batches run on the calling flow, without the thread pool.

public int DegreeOfParallelism { get; init; }

Property Value

int