Recyclable.Collections
0.0.5
See the version list below for details.
dotnet add package Recyclable.Collections --version 0.0.5
NuGet\Install-Package Recyclable.Collections -Version 0.0.5
<PackageReference Include="Recyclable.Collections" Version="0.0.5" />
paket add Recyclable.Collections --version 0.0.5
#r "nuget: Recyclable.Collections, 0.0.5"
// Install Recyclable.Collections as a Cake Addin #addin nuget:?package=Recyclable.Collections&version=0.0.5 // Install Recyclable.Collections as a Cake Tool #tool nuget:?package=Recyclable.Collections&version=0.0.5
Recyclable.Collections
Recyclable.Collections
project is an open source framework for operating dynamic lists at performance close to raw arrays, but fairly unlimited in size. It aims at providing minimal memory footprint. It implements IList<T>
interface and is targeted as direct replacements of List<T>
, SortableList<T>
, PriorityQueue<T>
& similar.
Included
RecyclableList<T>
RecyclableLongList<T>
Milestones
- β
Create basic classes
- β
RecyclableList<T>
- β
RecyclableLongList<T>
- π
ΏοΈ
RecyclableQueue<T>
- π
ΏοΈ
RecyclableSortedList<T>
- π
ΏοΈ
RecyclableStack<T>
- π
ΏοΈ
RecyclableUnorderedList<T>
- β
- β
Create basic unit tests
- β
RecyclableList<T>
- β
RecyclableLongList<T>
- π
ΏοΈ
RecyclableQueue<T>
- π
ΏοΈ
RecyclableSortedList<T>
- π
ΏοΈ
RecyclableStack<T>
- π
ΏοΈ
RecyclableUnorderedList<T>
- β
- β
Optimize
RecyclableList<T>
- β
Add
- β
AddRange
- β
when source is
array<T>
- β
when source is
List<T>
- β
when source is
IList<T>
- β
when source is
RecyclableList<T>
- β
when source is
RecyclableLongList<T>
- β
when source is
IEnumerable<T>
- β when source has non-enumerated count
- β
when source is
- β
Clear
- β
Contains
- β
CopyTo
- β
Dispose
- β
EnsureCapacity
- β
GetEnumerator
- β
IndexOf
- β
Insert
- β
Remove
- β
RemoveAt
- β
Resize
- β
this[int index]
- β
- β
Port
RecyclableList<T>
implementation toRecyclableLongList<T>
- π Optimize
RecyclableLongList<T>
- β
Add
- β
AddRange
- β
when source is
array<T>
- β
when source is
List<T>
- β
when source is
IList<T>
- β
when source is
RecyclableList<T>
- β
when source is
RecyclableLongList<T>
- β
when source is
IEnumerable<T>
- β when source has non-enumerated count
- β
when source is
- β
Clear
- β
Contains
- π
ΏοΈ
CopyTo
- β
Dispose
- β
EnsureCapacity
- β
GetEnumerator
- β
IndexOf
- β
LongIndexOf
- β
Insert
- β
Remove
- β
RemoveAt(int index)
- β
RemoveAt(long index)
- β
RemoveAt
- β
Resize
- β
this[int index]
- β
this[long index]
- β
Rename
RecyclableList<T>
toRecyclableLongList<T>
- β
Rename
RecyclableArrayList<T>
toRecyclableList<T>
- β Fix failing tests
- β
Hide not ready classes
- β
RecyclableQueue<T>
- β
RecyclableSortedList<T>
- β
RecyclableStack<T>
- β
RecyclableUnorderedList<T>
- β
- β
Add support for
ReadOnlySpan<T>
- β Release 0.0.3-alpha
- β
Implement
List<T>
interfaces- β
IList<T>
- β
ICollection<T>
- β
IEnumerable<T>
- β
IEnumerable
- β
IReadOnlyList<T>
- β
IReadOnlyCollection<T>
- β
IList
- β
ICollection
- β
- β Implement list versioning to allow data change identification
- β
Make sure that
NeedsClearing
is used & items are cleared in- β
RecyclableList<T>
- β
Clear
- β
Dispose
- β
Remove
- β
RemoveAt
- β Properties
- β Non-versioned & Versioned Enumerators
- β
RecyclableListHelpers
- β
EnsureCapacity
- β
Resize
- β
- β
IList<T>
implementation
- β
- β
RecyclableLongList<T>
- β
Clear
- β
Dispose
- β
Remove
- β
RemoveAt
- β
RemoveBlock
- β Properties
- β Non-versioned & Versioned Enumerators
- β
RecyclableLongListHelpers
- β
CopyFollowingItems
- β
CopyTo
- β
EnsureCapacity
- β
Resize
- β
- β
RecyclableLongList<T>.IndexOfHelpers
- β
- β
- β
Complete the implementation of
RecyclableLongList<T>
- β
InsertAt
to allow inserting items anywhere - β
RemoveAt
to allow removing item at any index
- β
- β Release 0.0.4
- β
Extend unit tests
- β
.Add
/.AddRange
must acceptnull
values - β
.AddRange
must accept empty collections - β
.Remove
/.RemoveAt
/.Clear
/.Dispose
must clear reference when reference type - β
.Clear
/.Dispose
must return arrays to pools - β
int
/long
variants of.Count
/.LongCount
,.IndexOf
/.LongIndexOf
,.Insert
,.RemoveAt
,this[]
- β
- β
Add
.ToRecyclableList
/.ToRecyclableLongList
variants for all supported collection types- β
Array
- β
ICollection
- β
ICollection<T>
- β
IEnumerable
- β
IEnumerable<T>
- β
IReadOnlyList<T>
- β
ReadOnlySpan<T>
- β
RecyclableList
- β
RecyclableLongList
- β
Span<T>
- β
T[]
- β
- β Release 0.0.5
- π Add support for
ulong
indexing- π
ΏοΈ Convert
_memoryBlocks
toArray
to allowulong
lengths - π
ΏοΈ Convert block indexes from
int
toulong
orlong
- π
ΏοΈ Convert
- π
ΏοΈ Overflow review
- π
ΏοΈ Add type casting to
long
for<<
&>>
operations, where required - π
ΏοΈ Make type castings
checked
- π
ΏοΈ Add type casting to
- π
ΏοΈ Port
RecyclableLongList<T>
optimizations toRecyclableList<T>
IndexOf
parallelization
- π ΏοΈ Release 0.0.6
- β
- π
ΏοΈ Implement
ILongList<T>
interface- π
ΏοΈ
RecyclableList<T>
- π
ΏοΈ
RecyclableLongList<T>
- π
ΏοΈ
- π
ΏοΈ Implement
RecyclableQueue<T>
- π
ΏοΈ Port
RecyclableLongList<T>
optimizations toRecyclableQueue<T>
- π ΏοΈ Release 0.0.7
- π
ΏοΈ Port
- π
ΏοΈ Implement
RecyclableStack<T>
- π
ΏοΈ Port
RecyclableLongList<T>
optimizations toRecyclableStack<T>
- π ΏοΈ Release 0.0.8
- π
ΏοΈ Port
- π
ΏοΈ Implement
RecyclableSortedList<T>
- π
ΏοΈ Port
RecyclableLongList<T>
optimizations toRecyclableSortedList<T>
- π ΏοΈ Release 0.0.9
- π
ΏοΈ Port
- π
ΏοΈ Implement
RecyclableUnorderedList<T>
- π
ΏοΈ Port
RecyclableLongList<T>
optimizations toRecyclableUnorderedList<T>
- π ΏοΈ Release 0.0.10
- π
ΏοΈ Port
- π
ΏοΈ Implement
RecyclableVersionedList<T>
- π
ΏοΈ Port
RecyclableList<T>
toRecyclableVersionedList<T>
- π
ΏοΈ Port
RecyclableLongList<T>
toRecyclableVersionedLongList<T>
- π ΏοΈ Release 0.0.11
- π
ΏοΈ Port
- π
ΏοΈ Optimize
OneSizeArrayPool
- π ΏοΈ Review locks
- π ΏοΈ Measure multi-threading performance
- π ΏοΈ Implement memory bucket disposal in high RAM pressure scenario
- π
ΏοΈ Optimize
RecyclableCollectionVersionObjectPool
- π
ΏοΈ Implement custom
ObjectPool<T>
- π ΏοΈ Measure multi-threading performance
- π ΏοΈ Implement memory bucket disposal in high RAM pressure scenario
- π
ΏοΈ Implement custom
- π
ΏοΈ Review
RecyclableArrayPool
- π ΏοΈ Review locks
- π ΏοΈ Measure multi-threading performance
- π ΏοΈ Implement array disposal in high RAM pressure scenario
- π
ΏοΈ Optimize
MemoryBucket<T>
- π
ΏοΈ Convert to
struct
, if possible - π ΏοΈ Find out if there are better replacements
- π ΏοΈ Release 0.0.12
- π
ΏοΈ Convert to
- π
ΏοΈ Optimize
- π
ΏοΈ
IndexOfSynchronizationContext
- π
ΏοΈ
IndexOfSynchronizationContextPool
- π
ΏοΈ
ManualResetEventSlimmer
- π ΏοΈ Multi-threading benchmarks
- π
ΏοΈ
ManualResetEventSlimmerPool
- π ΏοΈ Multi-threading benchmarks
- π
ΏοΈ
SpinLockSlimmer
- π ΏοΈ Multi-threading benchmarks
- π
ΏοΈ
- π ΏοΈ Release 0.0.13
- π
ΏοΈ Extend unit tests
- π
ΏοΈ
RecyclableLongListExtensions.CopyTo
- π ΏοΈ Pools
- π ΏοΈ Multi-threading
- π
ΏοΈ
- π
ΏοΈ Cleanup
- π
ΏοΈ Replace
LastBlockWithData
property with_lastBlockWithData
field - π ΏοΈ Replace properties with field refs, where possible
- β
RecyclableLongListExtensions
- β
ListExtensions
- π
ΏοΈ
MathUtils
- π ΏοΈ Resolve TODOs
- π ΏοΈ Remove obsolete methods
- π
ΏοΈ Add
RecyclableLongListHelpers.Enumerate
to benchmarks - π
ΏοΈ Review all classes & add
volatile
, where needed - π
ΏοΈ Remove
expectedItemsCount
parameter fromRecyclableLongList
's constructor
- π
ΏοΈ Replace
- π ΏοΈ Release 0.0.14
- π
ΏοΈ Optimize
- π
ΏοΈ
ListExtensions
- π
ΏοΈ
MathUtils
- π
ΏοΈ
SystemRandomNumberGenerator
- π
ΏοΈ
RecyclableLongListExtensions
- π ΏοΈ Memory release in pools to utilize GC events in case of memory pressure
- π
ΏοΈ
- π ΏοΈ Release 0.0.15
- β
Review and remove warnings & hints
- β Warnings
- β Hints
- Documentation
- π ΏοΈ Document the most efficient iteration over array collections
- π ΏοΈ Document the most efficient iteration over blocked collections
- π ΏοΈ Document differences in behavior
- π ΏοΈ Document other specifics
- π ΏοΈ Release 1.0.0
- π
ΏοΈ Implement source code generators
- π
ΏοΈ Add attributes
- π
ΏοΈ
GeneratorBaseClassAttribute
for marking base class used for generation - π
ΏοΈ
VersionedAttribute
for marking classes as versioned - π
ΏοΈ
IncVersionAttribute
for marking methods & setters as resulting in version increase
- π
ΏοΈ
- π
ΏοΈ Implement source code generator
- π
ΏοΈ Generate partial class for classes marked with
GeneratorBaseClassAttribute
- π ΏοΈ Add support for fields
- π ΏοΈ Add support for properties
- π ΏοΈ Add support for methods
- π ΏοΈ Add support for constructor
- π ΏοΈ Skip base fields, methods, properties etc. when they're overridden in the child class
- π
ΏοΈ Generate partial class for classes marked with
- π
ΏοΈ Add attributes
- π
ΏοΈ Optimize
- π
ΏοΈ
RecyclableLongList<T>.Resize
- π
ΏοΈ
RecyclableLongList<T>.CopyTo
- π
ΏοΈ Check if we can benefit from Sse2 in
.IndexOf
/.Contains
methods as given in MS blog. - π
ΏοΈ Memory pools
- π
ΏοΈ
OneSizeArrayPool<T>
- π
ΏοΈ
RecyclableArrayPool<T>
- π
ΏοΈ
- π
ΏοΈ
- π
ΏοΈ Add support for
ICollection<T>
interface in.AddRange
&constructor
- π
ΏοΈ Final optimizations
- π
ΏοΈ Replace
Math
class usages withif
statements - π
ΏοΈ Replace
a - b > 0
&a - b < 0
comparisons witha > b
&a < b
- π
ΏοΈ Replace
a + b > 0
&a + b < 0
comparisons witha > b
&a < b
- π
ΏοΈ Replace
a / b
&a * b
calculations with equivalents, where possible - π ΏοΈ Replace virtual calls with static calls
- π
ΏοΈ Separate
++number
,number++
,--number
&number--
operations to their own lines (they add extra variable) - π
ΏοΈ Replace
blockSize
sums by powers of 2, minus 1 - π ΏοΈ Remove type castings, if possible
- π ΏοΈ Convert generic methods to non-generic
- π ΏοΈ Replace integer comparisons with comparisons to 0 / 1, if possible
- π
ΏοΈ Replace
- π ΏοΈ Release 2.0.0
Characteristics of the classes
Common
All classes implement
IDisposable
interface & SHOULD be disposed after use. That's to return block arrays taken from the shared pool. It may be foreseen as an issue for replacement in existing code, which obviously is missingusing
clause. But considering thatDispose
will be called byGC
anyway, it should cause issues in specific scenarios, only. In either case the fix is one-word addition ofusing
.Memory blocks are created in 2 ways, depending on
blockSize
value- when
blockSize < 128
β¨ blocks are created as regulararrays
. - when
blockSize >= 128
β¨ blocks are taken from and returned toArrayPool<T>.Shared
, when blocks are removed. - maximum
blockSize
value is2_147_483_591
, which corresponds more or less to the maximum array size. blockSize
MUST be a power of 2. It will be rounded up to the closest power of 2, if needed. That is due to high performance gain on some operations, like the calculation of item index in a block.
- when
Array pools are shared between the same
T
type. I.e.List<int>
will use a different pool fromList<short>
and so on. For high concurrency environments you may want to provide your own pools, when this feature becomes available in the upcoming releases.Trying to access
this[int index]
,this[long index]
,Count
,LongCount
etc. whenCapacity == 0
will raiseNullReferenceException
. This is by design to remove all non-critical code from the constructor.β οΈ The default enumerators don't check if the collection was modified. That's by design due to high performance hit of the check. That should be fine in most use-cases. If you need to check for modifications, you're welcomed to use
.GetVersionedEnumerator()
/IRecyclableVersionedXxxList<T>
type-casting, e.g. inforeach
loops.foreach (var item in (IRecyclableVersionedList<long>)recyclableList) { ... ... ... } foreach (var item in (IRecyclableVersionedLongList<long>)recyclableLongList) { ... ... ... }
β οΈ The state of the default enumerators before the first & after the last call to
.MoveNext()
is undefined, but no exception is raised. That's by design due to high performance hit of the checks. This behavior is compatible withforeach
loops, which will never access.Current
property- when the collection is empty, or
- when
.MoveNext()
returnedfalse
, after reaching the end of the collection.
β οΈ If you decide to use
.GetEnumerator()
/.GetVersionedEnumerator()
, instead of relying onforeach
loops- you MUST ensure that you always respect the result of
.MoveNext()
call, and - you MUST NOT access
.Current
property before calling.MoveNext()
or after reaching the end of the collection.
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)
- you MUST ensure that you always respect the result of
RecyclableList<T>
- Range:
int
- Interfaces:
IList<T>
,IEnumerable<T>
,IDisposable
This is the direct equivalent ofList<T>
class, except that the arrays are taken from the shared pool, instead of directly being allocated. It proves to out performList<T>
& the standard arrays in certain operations and is fairly close in others. But they may perform worse in certain scenarios. If you're interested in details, please refer to benchmarks.
RecyclableLongList<T>
, RecyclableSortableList<T>
, RecyclableQueue<T>
, RecyclableStack<T>
Range:
long
Interfaces:
IList<T>
,ILongList<T>
,IEnumerable<T>
,IDisposable
All classes provide large storage capabilities, in practice limited only by the memory available in your system.
All data is stored in blocks, with the provided
int blockSize
or the default, currently being10,240
items in each block. It's recommended to use smaller numbers, if you foresee storing low no. of items on the list.There is no memory copying to increase the capacity of the recyclable classes, unless the no. of items exceeds the no. of allocated blocks. In that case, a new array of blocks is created to accommodate . If more capacity is needed, a new memory block is allocate & added to the internal list of blocks. This is the only list that may re-allocate memory block & copy their content to grow. That shouldn't be an issue considering limited no. of blocks stored by each class in practical scenarios. Currently I'm not planning any works around that. Shall there be a need to eliminate it, you're welcomed to file a PR with the proposed changes.
β οΈ
IndexOf
will automatically switch to parallel search mode. Collections bigger than (currently) 850_000 items will be scanned using parallelization. In either case it'll return the index of the first matching item. This note also applies toContains
, because it internally usesIndexOf
. The value of 850_000 may become configurable in the future, unless it proves to result in much worse performance.The parallelization utilizes default
Task
scheduling, resulting in non-deterministic order in which search tasks are executed. In most cases it resulted in significant performance improvements. Below you can find the benchmarks for various item counts.As
RecyclableLongList<T>
is foreseen for use-cases with big data, you should automatically benefit from it in many use-cases.Benchmark Results
Architecture Decisions
The architecture of the classes included in this project is driven primarily by performance & memory footprints. The following decisions were made to support it.
Code duplication
There is high level of code duplication in each of the classes. When you look at them, you will see they are alike & some of the code could be extracted to extension methods. It has been done & has proven to perform worse. For this reason, properties & methods expected to be on the hot-path, duplicate much of the code to get the most out of it.
Common base - ILongList<T>
Having a common base class for all the classes looks very attractive. But it is also proved to perform worse, if you start making properties & methods virtual & there are subsequent calls to base
. For this reason, each of the classes is the root class & there are hardly any virtual methods & properties. All classes are meant to be final
, but I've not marked them as sealed
. If you feel that you'd benefit from it, you're welcomed to inherit from them. The protected stuff is there for your use.
If you desire to have a common base for calls, each of the classes implements IList<T>
& ILongList<T>
interfaces. ILongList<T>
is a new interface, made alike IList<T>
, but unlocking full support for long
indexing & use. Considering the characteristics of the classes I feel that the generic name is justified, instead of IRecyclableList<T>
what you could expect.
Protection against incorrect use & state
Having protection against invalid state of the object is an important part of software engineering. The classes included in this project provide the same level of protection as the regular array
& List
class. They will raise exceptions when invalid index is given. But there is no additional protection that the content & state of the objects internally used by these classes are valid. You can break them, if you want to.
This decision is driven by performance measures. Considering wide use of the lists on the hot-paths, each additional check & operation starts counting. I've decided to eliminate all the checks for the sake of performance. If you feel that you need additional protection, feel free to inherit or reuse any of the provided classes to provide that.
this[int index]
, Count
, IndexOf(T item)
etc. may overflow, but...
All the classes included in this package support long
indexing and addressing. The LongCount
property will always provide the total no. of items stored on the list. Since Count
is just LongCount
type-casted to int
, its value may overflow.
But List<T>
addressing is kind of currently limited to int
ranges anyway in practical scenarios. As such Count
overflowing shouldn't be an issue when using the classes with existing code. If you use Count
in your loops, it's recommended to replace it with LongCount
, tough. You don't need to make any changes in foreach
or other iterator loops. They are expected to transparently use the new classes & yield all items, beyond int.MaxValue
range.
This is by design, for the best performance. Initially there have been checks in place to prevent overflowing & return int.MaxValue
instead, but they proved to slow down the operations. Considering low risk for existing code, I've decided to take it out.
If you foresee the overflowing as an issue, you're welcomed to propose an improvement & file a PR with proposed solution.
Auto-properties, new language features & code style
When you look at the code you may note, that it looks like in early c# days. Where the new language features yield the same or better performance, they are & will be used.
However, many of the new language features have proved to provide worse performance at some point in my testing. It includes auto-properties, for which I could see getters & setters generated in IL, instead of fields. Because all the classes are expected to be on the hot-paths, I've eliminated most of them.
Similarly, you will find places in code with hints or warnings disabled. The decision was always driven by performance measures. The use case & business logic was carefully reviewed to ensure it's safe to take shortcuts, before making the change. If you run into failing scenario, please feel free to create a work item against it and/or file a PR to fix it.
Finally, you'll find places with code commented out. That's to easily track what has been tried & what proved to perform worse.
At any time, if you know & can show in your benchmarks that the code can be simplified without impacting the performance, feel free to file a PR with proposed changes. Please include benchmark results from your testing to speed up things.
Thread Safety
The public static
members of the classes are thread safe. Any instance members are not guaranteed to be thread safe. You need to implement locking mechanism to safely use the classes in a multi-threading environment.
Use
All the classes included in this package are meant to be direct replacements of their corresponding system classes.
IList<T>
β¨ILongList<T>
List<T>
β¨RecyclableLongList<T>
Queue<T>
β¨RecyclableQueue<T>
PriorityQueue<T>
β¨RecyclableSortedList<T>
SortedList<T>
β¨RecyclableSortedList<T>
Stack<T>
β¨RecyclableStack<T>
Examples of each of the above classes are provided below. Please refer automated tests for more.
RecyclableList<T>
It's the closest equivalent to List<T>
in regards to functionality. It supports items' removal & delivers the best performance in most scenarios. But it's limited to int
range, tough. If you find that acceptable, my recommendation is to use this class as the direct replacement for List<T>
.
Do note, that it implements ILongList<T>
interface, too. This is to allow having common code base regardless, if you use the basic RecyclableList<T>
or it's long
-range version - RecyclableLongList<T>
. By doing that you can switch between them with highly limited changes in code.
RecyclableLongList<T>
public void RecyclableListExample()
{
int[] testNumbers = new[] { 1, 2, 2, 3 };
// Create
using var list = new RecyclableLongList<int>();
// Add items
foreach (var index in testNumbers)
{
list.Add(index);
}
foreach (var item in list)
{
Console.WriteLine(item);
}
// This will iterate over this[long index]
for (var itemIdx = 0; itemIdx <= list.LongCount; itemIdx++)
{
Console.WriteLine(list[itemIdx]);
}
// This will iterate over this[int index] and may overflow if there are > int.MaxValue no. of items on the list. See: Architecture Decisions
for (var itemIdx = 0; itemIdx <= list.LongCount; itemIdx++)
{
Console.WriteLine(list[itemIdx]);
}
list.Clear();
}
[Benchmark results](https://github.com/mlemanczyk/Recyclable.Collections/blob/main/Recyclable.Collections.Benchmarks/Results/Benchmarks.md#`IndexOf` Benchmarks)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.ObjectPool (>= 7.0.5)
- morelinq (>= 3.4.2)
-
net7.0
- Microsoft.Extensions.ObjectPool (>= 7.0.5)
- morelinq (>= 3.4.2)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Recyclable.Collections:
Package | Downloads |
---|---|
Recyclable.Collections.TestData
`Recyclable.Collections.TestData` project is a basic open source package for containing test data useful for testing collections like `RecyclableList<T>`, `RecyclableLongList<T>`, `List<T>`, `SortableList<T>`, `PriorityQueue<T>` & similar. |
|
Collections.Benchmarks.Core
`Collections.Benchmarks.Core` project is a basic open source framework for performance measurements based on various collection types like `RecyclableList<T>`, `RecyclableLongList<T>`, `List<T>`, `SortableList<T>`, `PriorityQueue<T>` & similar. |
|
Recyclable.Collections.Compatibility.List
Recyclable.Collections.Compatibility.List project is an open source framework for operating dynamic lists at performance close to raw arrays. It aims at providing minimal memory footprint. It implements IList<T>'s interface and is targeted as direct replacements of List<T>, SortableList<T>, PriorityQueue<T> and similar. |
|
Recyclable.Collections.TestData.xUnit
`Recyclable.Collections.TestData.xUnit` project is a basic open source package for working with repeatable xUnit test data useful for testing collections like `RecyclableList<T>`, `RecyclableLongList<T>`, `List<T>`, `SortableList<T>`, `PriorityQueue<T>` & similar. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.0.6.2 | 249 | 1/17/2024 | |
0.0.6.1 | 385 | 10/21/2023 | |
0.0.6 | 332 | 10/8/2023 | |
0.0.5 | 200 | 9/10/2023 | |
0.0.4 | 223 | 8/6/2023 | |
0.0.3.4-alpha | 172 | 7/16/2023 | |
0.0.3.3-alpha | 170 | 6/25/2023 | |
0.0.3.2-alpha | 164 | 6/10/2023 | |
0.0.3.1-alpha | 146 | 6/10/2023 | |
0.0.3 | 200 | 6/10/2023 | |
0.0.2 | 334 | 1/3/2023 | |
0.0.1 | 327 | 1/2/2023 |
Various performance improvements and fixes. All major .ToRecyclableList() & .ToRecyclableLongList() variants added.