RecyclableLongList.BinarySearch implemented. Various performance improvements & fixes in RecyclableList.BinarySearch. Benchmarks & Tests extended.
This commit is contained in:
1 parent
393685f061
commit
1f7603fe08
15 files changed
+756
-172
No files matched your search
+11
-11
@@ -54,16 +54,16 @@ namespace Recyclable.Collections.Compatibility.List.Benchmarks
|
||||
}
|
||||
}
|
||||
|
||||
// public void RecyclableLongList_BinarySearch()
|
||||
// {
|
||||
// var data = TestObjects;
|
||||
// var list = TestObjectsAsRecyclableLongList;
|
||||
// var dataCount = TestObjectCountForSlowMethods;
|
||||
// for (var i = 0; i < dataCount; i++)
|
||||
// {
|
||||
// DoNothing(list.BinarySearch(data[i]));
|
||||
// DoNothing(list.BinarySearch(data[^(i + 1)]));
|
||||
// }
|
||||
// }
|
||||
public void RecyclableLongList_BinarySearch()
|
||||
{
|
||||
var data = TestObjects;
|
||||
var list = TestObjectsAsRecyclableLongList;
|
||||
var dataCount = TestObjectCountForSlowMethods;
|
||||
for (var i = 0; i < dataCount; i++)
|
||||
{
|
||||
DoNothing.With(list.BinarySearch(data[i]));
|
||||
DoNothing.With(list.BinarySearch(data[^(i + 1)]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user