DevAM.LargeCollections
8.0.1
dotnet add package DevAM.LargeCollections --version 8.0.1
NuGet\Install-Package DevAM.LargeCollections -Version 8.0.1
<PackageReference Include="DevAM.LargeCollections" Version="8.0.1" />
<PackageVersion Include="DevAM.LargeCollections" Version="8.0.1" />
<PackageReference Include="DevAM.LargeCollections" />
paket add DevAM.LargeCollections --version 8.0.1
#r "nuget: DevAM.LargeCollections, 8.0.1"
#:package DevAM.LargeCollections@8.0.1
#addin nuget:?package=DevAM.LargeCollections&version=8.0.1
#tool nuget:?package=DevAM.LargeCollections&version=8.0.1
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 | Versions 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. |
-
.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.