perf(abcip): bounded-parallel tag reads (MaxConcurrentReads, default 8)

This commit is contained in:
Joseph Doherty
2026-08-16 04:02:40 -04:00
parent 5df793e79a
commit d6a4fbd648
4 changed files with 340 additions and 20 deletions
@@ -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>