From 6da67ede0d2eee908990c8b1708a78fce74a70f8 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 28 Jan 2023 22:40:48 +0100 Subject: [PATCH] RecyclableArrayList.Add marked for aggresive inlining for the best performance. --- Recyclable.Collections/RecyclableArrayList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recyclable.Collections/RecyclableArrayList.cs b/Recyclable.Collections/RecyclableArrayList.cs index 4d8a23b..6779dc8 100644 --- a/Recyclable.Collections/RecyclableArrayList.cs +++ b/Recyclable.Collections/RecyclableArrayList.cs @@ -153,7 +153,7 @@ namespace Recyclable.Collections public bool IsReadOnly { get; } = false; - //[MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Add(T item) { int requiredCapacity = _count + 1;