SetupBlockArrayPooling method removed for better performance.

This commit is contained in:
mlemanczyk committed 2023-09-16 21:14:58 +02:00
1 parent 56f79c4f21
commit 4b2722f15a
2 files changed
+86 -57

No files matched your search

@@ -195,13 +195,6 @@ namespace Recyclable.Collections
return requiredBlockCount << minBlockSizePow2Shift;
}
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
public static void SetupBlockArrayPooling(RecyclableLongList<T> list, int blockSize)
{
list._blockSize = blockSize;
list._blockSizePow2BitShift = (byte)(31 - BitOperations.LeadingZeroCount((uint)blockSize));
}
#pragma warning disable CA2208
public static void ThrowIndexOutOfRangeException(in string message) => throw new ArgumentOutOfRangeException("index", message);
#pragma warning restore CA2208