Recyclable list initializations fixed to pass the no. of items, not block size.
This commit is contained in:
1 parent
f94e91c45d
commit
7aec77e674
2 files changed
+3
-3
No files matched your search
@@ -35,7 +35,7 @@ namespace Recyclable.Collections.Benchmarks
|
||||
{
|
||||
var data = TestObjects;
|
||||
var dataCount = TestObjectCount;
|
||||
using var list = new RecyclableList<object>(dataCount);
|
||||
using var list = new RecyclableList<object>(initialCapacity: dataCount);
|
||||
for (var i = 0; i < dataCount; i++)
|
||||
{
|
||||
list.Add(data[i]);
|
||||
|
||||
Reference in new issue
Block a user