RecyclableArrayList.AddRange(IEnumerable<T>) performance improvements. ...WhenSourceIsIEnumerable benchmarks reworked to use real IEnumerable, which can't be typecasted to anything.

This commit is contained in:
mlemanczyk committed 2023-01-15 20:12:52 +01:00
1 parent bf2d966f28
commit f500f846ac
7 files changed
+121 -33

No files matched your search

@@ -25,7 +25,7 @@ namespace Recyclable.Collections.Benchmarks
}
}
[Benchmark]
//[Benchmark]
public void Array_GetItem()
{
var data = TestObjects;
@@ -36,14 +36,14 @@ namespace Recyclable.Collections.Benchmarks
}
}
[Benchmark]
//[Benchmark]
public void Array_Count()
{
var data = _testArray;
DoNothing(data.Length);
}
[Benchmark]
//[Benchmark]
public void Array_LongCount()
{
var data = _testArray;