refactor: Update list initialization in DEMA, EMA, SMA, T3, TEMA, TRIMA, and WMA classes for improved readability

This commit is contained in:
Miha Kralj
2025-12-08 19:11:53 -05:00
parent 5f57cbbe74
commit c1caaf36b4
8 changed files with 22 additions and 11 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ public sealed class Tema : ITValuePublisher
if (source.Count == 0) return new TSeries();
int len = source.Count;
var t = new List<long>(len);
var v = new List<double>(len);
List<long> t = new(len);
List<double> v = new(len);
CollectionsMarshal.SetCount(t, len);
CollectionsMarshal.SetCount(v, len);