RecyclableList.Resize performance improvements. We'll always initiate the list to 4 elements to eliminate branching along the way. Before cleanup.
This commit is contained in:
1 parent
11fd6e3dd0
commit
b9181eee23
3 files changed
+221
-50
No files matched your search
@@ -86,7 +86,7 @@ namespace Recyclable.CollectionsTests
|
||||
}
|
||||
|
||||
// Validate
|
||||
_ = list.Capacity.Should().Be(0);
|
||||
_ = list.Capacity.Should().Be(4);
|
||||
_ = list.Count.Should().Be(0);
|
||||
_ = list.Should().BeEmpty();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user