Revert "Support for custom boundaries implemented. v1 - will be reverted due to 5x slower performance."

This reverts commit 22d8593e1f.
This commit is contained in:
mlemanczyk committed 2023-09-17 13:15:17 +02:00
1 parent 22d8593e1f
commit 2ff1aab655
12 files changed
+92 -192

No files matched your search

@@ -27,18 +27,18 @@ namespace Recyclable.Collections
object? IList.this[int index]
{
get => _memoryBlock.GetValue(index);
get => _memoryBlock[index];
set
{
if (value is T typedValue)
{
_memoryBlock.SetValue(typedValue, index);
new Span<T>(_memoryBlock)[index] = typedValue;
}
else if (value == null && _defaultIsNull)
{
#nullable disable
_memoryBlock.SetValue(default, index);
new Span<T>(_memoryBlock)[index] = default;
#nullable restore
}
else