DevAM.LargeCollections 8.0.1

dotnet add package DevAM.LargeCollections --version 8.0.1
                    
NuGet\Install-Package DevAM.LargeCollections -Version 8.0.1
                    
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="DevAM.LargeCollections" Version="8.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevAM.LargeCollections" Version="8.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DevAM.LargeCollections" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DevAM.LargeCollections --version 8.0.1
                    
#r "nuget: DevAM.LargeCollections, 8.0.1"
                    
#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.
#:package DevAM.LargeCollections@8.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DevAM.LargeCollections&version=8.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DevAM.LargeCollections&version=8.0.1
                    
Install as a Cake Tool

What is LargeCollections?

LargeCollections is a library for .NET framework that offers a number of interfaces and types for collections that can store up to 1_152_921_504_606_846_976 items. In comparison many .NET standard collections are limited to about 2.1 billion items.

Collections

Core Collections

  • LargeArray<T> - Store billions of elements in a single array – no more 2GB limits
  • LargeList<T> - A growable list that scales beyond standard .NET limits
  • LargeSet<T> - Lightning-fast uniqueness checks, even with massive datasets
  • LargeDictionary<TKey, TValue> - Key-value lookups that stay fast at any scale
  • LargeLinkedList<T> - Efficient insertions and deletions anywhere in the list
  • LargeSpan<T> - Work with slices of data without copying
  • ReadOnlyLargeSpan<T> - Safe, read-only views into your data

Tree-Based Collections

  • LargeBPlusTree<TKey, TValue> - Keep data sorted automatically; perfect for range queries like "find all items between A and B"
  • LargeKDTree<T> - Find nearest neighbors in milliseconds among millions of points (e.g., "find the closest store to me")
  • LargeBKDTree<T> - Blazing-fast spatial searches; ideal for geographic data and bounding box queries

Observable Collections

  • LargeObservableCollection<T> - Get notified when your data changes – great for UI bindings
  • ReadOnlyLargeObservableCollection<T> - Monitor changes without allowing modifications

Disk-Backed Collections

  • DiskCache<TKey, TValue> - Handle datasets larger than your RAM; data automatically spills to disk when needed
  • SpatialDiskCache<long, TValue> - Combine disk caching with spatial queries for massive geographic datasets

Stream Wrappers

  • LargeWritableMemoryStream - Write large amounts of data as a stream without hitting memory limits
  • LargeReadableMemoryStream - Read large byte collections through the familiar Stream API

Why Use Each Collection?

If you need to... Use this
Store billions of items in order LargeArray, LargeList
Check if items exist (fast) LargeSet
Look up values by key LargeDictionary
Keep data sorted & query ranges LargeBPlusTree
Find nearest points in space LargeKDTree, LargeBKDTree
React to data changes in UI LargeObservableCollection
Work with more data than fits in RAM DiskCache
Query geographic/spatial data on disk SpatialDiskCache

Features

  • No Size Limits – Work with up to 1.15 quintillion (1,152,921,504,606,846,976) elements
  • Near-Native Speed – Hash collections perform within 1.4× of .NET's built-in Dictionary
  • Smooth Performance – Spatial queries run without causing garbage collection pauses
  • Always Sorted – B+Trees keep your data in order automatically as you add and remove items
  • Find Nearby Fast – Spatial trees locate nearest neighbors among millions of points in microseconds
  • Memory Smart – Disk-backed collections let you work with more data than fits in RAM
  • Cross-Platform – Supports .NET Standard 2.0/2.1, .NET 6, 8, and 10

Installation

Install via NuGet:

dotnet add package DevAM.LargeCollections
dotnet add package DevAM.LargeCollections.DiskCache
dotnet add package DevAM.LargeCollections.Observable

Target Frameworks

  • .NET Standard 2.0 / 2.1
  • .NET 6.0 / 8.0 / 10.0

License

Copyright (c) 2025 DevAM

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SPDX-License-Identifier: MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 was computed.  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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net10.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DevAM.LargeCollections:

Package Downloads
DevAM.LargeCollections.DiskCache

Dictionary-like collections that allow to limit the amount of memory (RAM) in MB that will be used. Any memory requirement that exceeds this amount is automatically swapped out to disk. Additionally it offers multi-threaded operations for performance improvements.

DevAM.LargeCollections.Observable

A large observable collection that can store up to 1_152_921_504_606_846_976 items.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.1 163 12/7/2025
7.0.0 733 12/1/2025
6.0.0 344 11/12/2025
5.0.2 204 10/17/2025
5.0.1 238 10/16/2025
5.0.0 263 10/8/2025
4.0.0 214 8/21/2025