Remove extra stackallocs

This commit is contained in:
Asriel Camora
2023-07-07 16:35:22 +02:00
parent e4d9e3a52e
commit 7d8fc9ff8f
-4
View File
@@ -94,10 +94,6 @@ public static class SolverUtils
var W = 1f - w;
var CVector = new Vector<float>(C);
Span<float> scoreSums = stackalloc float[vecLength];
Span<int> visits = stackalloc int[vecLength];
Span<float> maxScores = stackalloc float[vecLength];
var max = (0, 0);
var maxScore = 0f;
for (var i = 0; length > 0; ++i)