RecyclableArrayList[int index] set performance improvement. Add marked for aggresive inlining.
This commit is contained in:
1 parent
63773415e7
commit
bf2d966f28
5 files changed
+8
-6
No files matched your search
+3
-2
@@ -12,12 +12,15 @@ namespace Recyclable.Collections.Benchmarks
|
||||
_testRecyclableList = new(TestObjects, TestObjectCount);
|
||||
_testArray = TestObjects.ToArray();
|
||||
_testList = new(TestObjects);
|
||||
_ = TestObjectsAsList;
|
||||
_ = TestObjectsAsRecyclableArrayList;
|
||||
}
|
||||
|
||||
~RecyclableCollectionsBenchmarks()
|
||||
{
|
||||
_testRecyclableArrayList?.Dispose();
|
||||
_testRecyclableList?.Dispose();
|
||||
TestObjectsAsRecyclableArrayList?.Dispose();
|
||||
}
|
||||
|
||||
//[Benchmark]
|
||||
@@ -123,8 +126,6 @@ namespace Recyclable.Collections.Benchmarks
|
||||
{
|
||||
data[i] = TestObjects[i];
|
||||
}
|
||||
|
||||
data.Count = dataCount;
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
|
||||
Reference in new issue
Block a user