From 3d6536beea861c47cc3b5c2bbd6d78f41853c7c3 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 28 Jan 2023 22:49:10 +0100 Subject: [PATCH] RecyclableList.Add marked for aggressive inlining for the best performance --- Recyclable.Collections/RecyclableList.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index af833bf..fc4e9b4 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -266,6 +266,7 @@ namespace Recyclable.Collections public T[][] MemoryBlocks { get => _memoryBlocks; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Add(T item) { long requiredCapacity = _longCount + 1;