Several hints removed & code cleaned up.
This commit is contained in:
1 parent
b038bcfdc9
commit
52dc663ada
26 files changed
+107
-139
No files matched your search
@@ -63,6 +63,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
DoNothing(list.Contains(data[^(i + 1)]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,6 @@ namespace Recyclable.Collections.Benchmarks
|
||||
|
||||
if (nextItemBlockIndex == data.LastBlockWithData)
|
||||
{
|
||||
|
||||
var memoryBlock = new Span<long>(memoryBlocks[nextItemBlockIndex], 0, data.NextItemIndex);
|
||||
for (var itemIndex = 0; itemIndex < memoryBlock.Length; itemIndex++)
|
||||
{
|
||||
@@ -119,8 +118,6 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void RecyclableList_GetItem_AsForEach()
|
||||
{
|
||||
var data = TestObjectsAsRecyclableList;
|
||||
var dataCount = TestObjectCount;
|
||||
|
||||
foreach (var item in data)
|
||||
{
|
||||
DoNothing(item);
|
||||
|
||||
@@ -75,6 +75,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
DoNothing(list.LongIndexOf(data[i]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -75,6 +75,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
DoNothing(list.LongIndexOf(data[i]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -75,6 +75,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
DoNothing(list.LongIndexOf(data[^(i + 1)]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
var data = TestObjectsAsRecyclableList;
|
||||
DoNothing(data.LongCount);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,5 @@ namespace Recyclable.Collections.Benchmarks
|
||||
DoNothing(list.Remove(data[i]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using Collections.Pooled;
|
||||
|
||||
|
||||
namespace Recyclable.Collections.Benchmarks
|
||||
{
|
||||
public partial class RecyclableCollectionsBenchmarks
|
||||
|
||||
Reference in new issue
Block a user