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

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