Optimized.Collections 0.5.0

dotnet add package Optimized.Collections --version 0.5.0
NuGet\Install-Package Optimized.Collections -Version 0.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Optimized.Collections" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Optimized.Collections --version 0.5.0
#r "nuget: Optimized.Collections, 0.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Optimized.Collections as a Cake Addin
#addin nuget:?package=Optimized.Collections&version=0.5.0

// Install Optimized.Collections as a Cake Tool
#tool nuget:?package=Optimized.Collections&version=0.5.0

Optimized.Collections

build nuget

Optimized.Collections aims to provide drop in replacements for System.Collections with improved speed, memory or features in specific use cases.

Vec<T>, Set<T> and Map<K, V>

By removing the ability to Remove or Clear collections the following advantages are possible:

  • Improved performance and reduced memory.
  • An improved threading model where reads are lock free.
  • Set<T> and Map<K, V> are also IReadOnlyList<T> i.e. can be accessed by an index and passed as a list.

These can be particularly important in collection based logic and caches.

TODO

  • Add struct Keys and Values to Map
  • Expose VecLink<T>.
  • SetSync<T> and MapSync<T>.
  • Vec1<T>, Set1<T>, Map1<K, V> make a lot of sense and optimal for Set and Map as no Holder.Initial branch.
  • Are SetLink<T> or MapLink<K, V> useful?
  • Come back to Memo as a class

Memo

A set of high performance single and multi-threaded memoize functions for Func<T, R>, Func<Set<T>, R[]>, Func<IReadOnlyCollection<T>, R[]>, Func<Set<T>, Task<R[]>> and Func<IReadOnlyCollection<T>, Task<R[]>>.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 224 3/1/2023
0.4.0 387 5/4/2022
0.3.0-preview 155 4/18/2022
0.2.0-preview 148 4/10/2022
0.1.0-setup 149 3/26/2022

Fibonacci hash.