Partial support for items counts exceeding int.MaxValue

This commit is contained in:
mlemanczyk committed 2023-04-10 22:56:02 +02:00
1 parent fdea416dc1
commit 6b2db42d0d
7 files changed
+47 -28

No files matched your search

@@ -1,4 +1,5 @@
using BenchmarkDotNet.Attributes;
using MoreLinq.Extensions;
namespace Recyclable.Collections.Benchmarks
{
@@ -17,9 +18,10 @@ namespace Recyclable.Collections.Benchmarks
{
var data = TestObjects;
var dataCount = TestObjectCount;
for (var i = 0; i < dataCount; i++)
long index = 0;
for(var i = 0; i < dataCount; i++)
{
data[i] = TestObjects[i];
data[index] = TestObjects[index++];
}
}