From 0159042755b92102f364730ced46e33666e5606e Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sun, 8 Oct 2023 21:28:43 +0200 Subject: [PATCH] Release 0.0.6 --- README.md | 10 +++++----- Recyclable.Collections/Recyclable.Collections.csproj | 4 ++-- .../RecyclableList.Compatibility.List.Find.cs | 1 + .../RecyclableList.Compatibility.List.IndexOf.cs | 1 + .../RecyclableList.Compatibility.List.InsertRange.cs | 1 + .../RecyclableList.Compatibility.List.cs | 1 + Recyclable.Collections/RecyclableLongList.cs | 1 + 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index afef32e..e9930d8 100644 --- a/README.md +++ b/README.md @@ -138,12 +138,12 @@ 1. ✅ `Span` 1. ✅ `T[]` 1. ✅ Release 0.0.5 - 1. ✅ Implement `List` compatibility pack in `RecyclableList` + 1. ✅ Implement `List` compatibility pack for `RecyclableList` 1. ✅ Overflow review 1. ✅ Add type casting to `long` for `<<` & `>>` operations, where required 1. ✅ Make type castings `checked`, where required - 1. 🅿️ Release 0.0.6 - 1. 🅿️ Implement `List` compatibility pack in `RecyclableLongList` + 1. ✅ Release 0.0.6 + 1. 👉 Implement `List` compatibility pack for `RecyclableLongList` 1. 🅿️ Port `RecyclableLongList` optimizations to `RecyclableList` 1. `IndexOf` parallelization 1. 🅿️ Release 0.0.7 @@ -308,7 +308,7 @@ \ **Failing to do so WILL result in unpredictable behavior.** - ### [Benchmark results](https://github.com/mlemanczyk/Recyclable.Collections/blob/main/Recyclable.Collections.Benchmarks/Results/Benchmarks.md#`IndexOf` Benchmarks) + ### [Benchmark results](https://github.com/mlemanczyk/Recyclable.Collections/blob/main/Recyclable.Collections.Benchmarks/Results/Benchmarks.md) ## `RecyclableList` * Range: `int` @@ -422,4 +422,4 @@ public void RecyclableListExample() } ``` -### [Benchmark results](https://github.com/mlemanczyk/Recyclable.Collections/blob/main/Recyclable.Collections.Benchmarks/Results/Benchmarks.md#`IndexOf` Benchmarks) +### [Benchmark results](https://github.com/mlemanczyk/Recyclable.Collections/blob/main/Recyclable.Collections.Benchmarks/Results/Benchmarks.md) diff --git a/Recyclable.Collections/Recyclable.Collections.csproj b/Recyclable.Collections/Recyclable.Collections.csproj index 1819fc2..3decd82 100644 --- a/Recyclable.Collections/Recyclable.Collections.csproj +++ b/Recyclable.Collections/Recyclable.Collections.csproj @@ -5,7 +5,7 @@ enable true Recyclable.Collections - 0.0.5 + 0.0.6 Marek Lemańczyk N/A Recyclable.Collections @@ -17,7 +17,7 @@ LICENSE.md README.md git - Various performance improvements and fixes. All major .ToRecyclableList() & .ToRecyclableLongList() variants added. + List<T> compatibility pack added for RecyclableList<T>. Various performance improvements and fixes. AnyCPU;x64 diff --git a/Recyclable.Collections/RecyclableList.Compatibility.List.Find.cs b/Recyclable.Collections/RecyclableList.Compatibility.List.Find.cs index d86cab1..00871d0 100644 --- a/Recyclable.Collections/RecyclableList.Compatibility.List.Find.cs +++ b/Recyclable.Collections/RecyclableList.Compatibility.List.Find.cs @@ -2,6 +2,7 @@ namespace Recyclable.Collections { + [Obsolete("It'll be moved to Recyclable.Collections.Compatibility.List NuGet package in the next release.")] public static class zRecyclableListCompatibilityListFind { public static bool Exists(this RecyclableList list, Predicate match) diff --git a/Recyclable.Collections/RecyclableList.Compatibility.List.IndexOf.cs b/Recyclable.Collections/RecyclableList.Compatibility.List.IndexOf.cs index f6f263b..09aa8d4 100644 --- a/Recyclable.Collections/RecyclableList.Compatibility.List.IndexOf.cs +++ b/Recyclable.Collections/RecyclableList.Compatibility.List.IndexOf.cs @@ -1,5 +1,6 @@ namespace Recyclable.Collections { + [Obsolete("It'll be moved to Recyclable.Collections.Compatibility.List NuGet package in the next release.")] public static class zRecyclableListCompatibilityListIndexOf { public static int IndexOf(this RecyclableList list, T item, int index) => list._count != 0 diff --git a/Recyclable.Collections/RecyclableList.Compatibility.List.InsertRange.cs b/Recyclable.Collections/RecyclableList.Compatibility.List.InsertRange.cs index 4c50cd9..27a1107 100644 --- a/Recyclable.Collections/RecyclableList.Compatibility.List.InsertRange.cs +++ b/Recyclable.Collections/RecyclableList.Compatibility.List.InsertRange.cs @@ -4,6 +4,7 @@ using System.Runtime.CompilerServices; namespace Recyclable.Collections { + [Obsolete("It'll be moved to Recyclable.Collections.Compatibility.List NuGet package in the next release.")] public static class zRecyclableListCompatibilityListInsertRange { private static void InsertRangeEnumerated(this RecyclableList list, int index, IEnumerable items, int growByCount) diff --git a/Recyclable.Collections/RecyclableList.Compatibility.List.cs b/Recyclable.Collections/RecyclableList.Compatibility.List.cs index 1db3766..ba3e662 100644 --- a/Recyclable.Collections/RecyclableList.Compatibility.List.cs +++ b/Recyclable.Collections/RecyclableList.Compatibility.List.cs @@ -5,6 +5,7 @@ using Recyclable.Collections.Pools; namespace Recyclable.Collections { + [Obsolete("It'll be moved to Recyclable.Collections.Compatibility.List NuGet package in the next release.")] public static class zRecyclableListCompatibilityList { public static ReadOnlyCollection AsReadOnly(this RecyclableList list) => new(list); diff --git a/Recyclable.Collections/RecyclableLongList.cs b/Recyclable.Collections/RecyclableLongList.cs index b2cf1c0..a2daf6d 100644 --- a/Recyclable.Collections/RecyclableLongList.cs +++ b/Recyclable.Collections/RecyclableLongList.cs @@ -5,6 +5,7 @@ using Recyclable.Collections.Pools; [assembly: InternalsVisibleTo("Recyclable.Collections.Benchmarks")] [assembly: InternalsVisibleTo("Recyclable.CollectionsTests")] +[assembly: InternalsVisibleTo("Recyclable.Collections.Compatibility.List")] namespace Recyclable.Collections {