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:
mlemanczyk committed 2023-07-01 13:02:43 +02:00
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();
}