Tiny cleanup

This commit is contained in:
mlemanczyk committed 2023-04-25 01:55:39 +02:00
1 parent aa78a2ba40
commit 49682fd733
2 files changed
+2 -4

No files matched your search

@@ -19,7 +19,7 @@ namespace Recyclable.Collections.Benchmarks
{
var data = TestObjects;
var dataCount = TestObjectCount;
using var list = new PooledList<object>(capacity: checked((int)TestObjectCount), ClearMode.Always);
using var list = new PooledList<object>(capacity: checked((int)dataCount), ClearMode.Always);
list.AddRange(data);
}
@@ -37,7 +37,7 @@ namespace Recyclable.Collections.Benchmarks
{
var data = TestObjects;
var dataCount = TestObjectCount;
using var list = new RecyclableList<object>(minBlockSize: BlockSize, expectedItemsCount: TestObjectCount);
using var list = new RecyclableList<object>(minBlockSize: BlockSize, expectedItemsCount: dataCount);
list.AddRange(data);
}
}
@@ -63,7 +63,6 @@ namespace Recyclable.Collections.Benchmarks
public void RecyclableList_GetItem_AsSpan()
{
var data = _testRecyclableList;
var dataCount = TestObjectCount;
int blockSize = data.BlockSize;
int nextItemBlockIndex = data.NextItemBlockIndex;
@@ -92,7 +91,6 @@ namespace Recyclable.Collections.Benchmarks
public void RecyclableList_GetItem_AsArray()
{
var data = _testRecyclableList;
var dataCount = TestObjectCount;
int blockSize = data.BlockSize;
int nextItemBlockIndex = data.NextItemBlockIndex;