perf(abcip): bounded-parallel tag reads (MaxConcurrentReads, default 8)
This commit is contained in:
@@ -85,6 +85,7 @@ public static class AbCipDriverFactoryExtensions
|
||||
EnableAlarmProjection = dto.EnableAlarmProjection ?? false,
|
||||
AlarmPollInterval = TimeSpan.FromMilliseconds(dto.AlarmPollIntervalMs ?? 1_000),
|
||||
EnableDeclarationOnlyUdtGrouping = dto.EnableDeclarationOnlyUdtGrouping ?? false,
|
||||
MaxConcurrentReads = dto.MaxConcurrentReads ?? 8,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -147,6 +148,13 @@ public static class AbCipDriverFactoryExtensions
|
||||
/// </summary>
|
||||
public bool? EnableDeclarationOnlyUdtGrouping { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of read work items one ReadAsync batch may have in
|
||||
/// flight against the controller at once. Bounds concurrency across tags only; the per-tag
|
||||
/// runtime lock still serialises operations on any one handle. Defaults to 8; 1 is sequential.
|
||||
/// </summary>
|
||||
public int? MaxConcurrentReads { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the alarm poll interval in milliseconds.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user