RecyclableArrayList.Add marked for aggresive inlining for the best performance.
This commit is contained in:
1 parent
315acb5a68
commit
6da67ede0d
1 file changed
+1
-1
@@ -153,7 +153,7 @@ namespace Recyclable.Collections
|
|||||||
|
|
||||||
public bool IsReadOnly { get; } = false;
|
public bool IsReadOnly { get; } = false;
|
||||||
|
|
||||||
//[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void Add(T item)
|
public void Add(T item)
|
||||||
{
|
{
|
||||||
int requiredCapacity = _count + 1;
|
int requiredCapacity = _count + 1;
|
||||||
|
|||||||
Reference in new issue
Block a user