Skip to content

Commit

Permalink
FFT: Improve performance by reducing length checks
Browse files Browse the repository at this point in the history
extends #78 and relates to #73
  • Loading branch information
swharden committed Aug 21, 2023
1 parent f12b9e0 commit da8c052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FftSharp/FftOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static void RFFT_WithoutChecks(Span<System.Numerics.Complex> destination,
{
Span<System.Numerics.Complex> buffer = temp.AsSpan(0, input.Length);
input.CopyTo(buffer);
FFT.Forward(buffer);
FFT_WithoutChecks(buffer);
buffer.Slice(0, destination.Length).CopyTo(destination);
}
catch (Exception ex)
Expand Down

0 comments on commit da8c052

Please sign in to comment.