refactor: optimize event args handling for performance improvements

This commit is contained in:
Miha Kralj
2025-12-28 17:21:53 -08:00
parent a64cc1c224
commit ad6eebf812
47 changed files with 59 additions and 51 deletions
+1 -2
View File
@@ -109,8 +109,7 @@ public class TSeries : IReadOnlyList<TValue>, ITValuePublisher
_v[lastIdx] = value.Value;
}
var args = new TValueEventArgs { Value = value, IsNew = isNew };
Pub?.Invoke(this, args);
Pub?.Invoke(this, new TValueEventArgs { Value = value, IsNew = isNew });
}
// Overload for backward compatibility (assumes isNew=true)