Skip to content

Commit 0f469c6

Browse files
committed
Removed AggressiveOptimization attributes
1 parent 4ec90dd commit 0f469c6

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Microsoft.Toolkit.HighPerformance/Helpers/Internals/SpanHelper.Count.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ public static nint Count<T>(ref T r0, nint length, T value)
7979
/// Implements <see cref="Count{T}"/> with a sequential search.
8080
/// </summary>
8181
[Pure]
82-
#if NETCOREAPP3_1
83-
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
84-
#endif
8582
private static nint CountSequential<T>(ref T r0, nint length, T value)
8683
where T : IEquatable<T>
8784
{
@@ -132,9 +129,6 @@ private static nint CountSequential<T>(ref T r0, nint length, T value)
132129
/// Implements <see cref="Count{T}"/> with a vectorized search.
133130
/// </summary>
134131
[Pure]
135-
#if NETCOREAPP3_1
136-
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
137-
#endif
138132
private static nint CountSimd<T>(ref T r0, nint length, T value)
139133
where T : unmanaged, IEquatable<T>
140134
{

Microsoft.Toolkit.HighPerformance/Helpers/Internals/SpanHelper.Hash.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ internal static partial class SpanHelper
2121
/// <param name="length">The number of items to hash.</param>
2222
/// <returns>The Djb2 value for the input sequence of items.</returns>
2323
[Pure]
24-
#if NETCOREAPP3_1
25-
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
26-
#endif
2724
public static int GetDjb2HashCode<T>(ref T r0, nint length)
2825
where T : notnull
2926
{
@@ -87,9 +84,6 @@ public static int GetDjb2HashCode<T>(ref T r0, nint length)
8784
/// faster than <see cref="GetDjb2HashCode{T}"/>, as it can parallelize much of the workload.
8885
/// </remarks>
8986
[Pure]
90-
#if NETCOREAPP3_1
91-
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
92-
#endif
9387
public static unsafe int GetDjb2LikeByteHash(ref byte r0, nint length)
9488
{
9589
int hash = 5381;

0 commit comments

Comments
 (0)