List<T> compatibility code moved to Recyclable.Collections.Compatibility.List package. Cleanup.
This commit is contained in:
1 parent
ec69b1c406
commit
203b13268f
61 files changed
+1634
-4375
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Collections.Pooled;
|
||||
using Collections.Benchmarks.Core;
|
||||
|
||||
#pragma warning disable CA1822, CA1825
|
||||
|
||||
@@ -9,31 +10,31 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void Array_Create()
|
||||
{
|
||||
var list = new int[0];
|
||||
DoNothing(list);
|
||||
DoNothing.With(list);
|
||||
}
|
||||
|
||||
public void List_Create()
|
||||
{
|
||||
var list = new List<int>();
|
||||
DoNothing(list);
|
||||
DoNothing.With(list);
|
||||
}
|
||||
|
||||
public void PooledList_Create()
|
||||
{
|
||||
using var list = new PooledList<int>(ClearMode.Auto);
|
||||
DoNothing(list);
|
||||
DoNothing.With(list);
|
||||
}
|
||||
|
||||
public void RecyclableList_Create()
|
||||
{
|
||||
using var list = new RecyclableList<int>();
|
||||
DoNothing(list);
|
||||
DoNothing.With(list);
|
||||
}
|
||||
|
||||
public void RecyclableLongList_Create()
|
||||
{
|
||||
using var list = new RecyclableLongList<int>();
|
||||
DoNothing(list);
|
||||
DoNothing.With(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user