From 31d83ec0584cc4eb3e5b08b73eaecc26b5b0da96 Mon Sep 17 00:00:00 2001 From: profan Date: Fri, 5 Jun 2026 21:11:17 +0100 Subject: [PATCH] shave another 50-100ms off zeroing memory --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 023c829..75ea7d3 100644 --- a/Program.cs +++ b/Program.cs @@ -445,7 +445,8 @@ internal static class Interpreter throw new InvalidOperationException(); } } - + + [SkipLocalsInit] public static float[] Evaluate(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)) { - return (T)(object)(Unsafe.As>(ref a) - Unsafe.As>(ref b)); } else