test(core): pin batch-after-per-tag ordering; relocate batch tests beside the engine suite
This commit is contained in:
@@ -242,7 +242,10 @@ public sealed class PollGroupEngine : IAsyncDisposable
|
||||
{
|
||||
state.LastValues[tagRef] = current;
|
||||
_onChange(state.Handle, tagRef, current);
|
||||
if (_onBatch is not null) (changed ??= new List<DataChangeItem>()).Add(new DataChangeItem(tagRef, current));
|
||||
// Capacity hint: a cycle can produce at most one item per subscribed reference, so
|
||||
// sizing the list once avoids the doubling re-allocations a large group would incur.
|
||||
if (_onBatch is not null)
|
||||
(changed ??= new List<DataChangeItem>(state.TagReferences.Count)).Add(new DataChangeItem(tagRef, current));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user