shave another 50-100ms off zeroing memory

This commit is contained in:
profan 2026-06-05 21:11:17 +01:00
parent 076bea641d
commit 31d83ec058
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,8 @@ internal static class Interpreter
throw new InvalidOperationException();
}
}
[SkipLocalsInit]
public static float[] Evaluate<T>(Instruction[] instructions, int imageSize, InterpreterOptions options = default, float[]? result = null)
where T : unmanaged
{
@ -515,7 +516,6 @@ internal static class Interpreter
}
else if (typeof(T) == typeof(Vector<float>))
{
return (T)(object)(Unsafe.As<T, Vector<float>>(ref a) - Unsafe.As<T, Vector<float>>(ref b));
}
else