![]() |
VOOZH | about |
dotnet add package NonBlocking --version 2.1.2
NuGet\Install-Package NonBlocking -Version 2.1.2
<PackageReference Include="NonBlocking" Version="2.1.2" />
<PackageVersion Include="NonBlocking" Version="2.1.2" />Directory.Packages.props
<PackageReference Include="NonBlocking" />Project file
paket add NonBlocking --version 2.1.2
#r "nuget: NonBlocking, 2.1.2"
#:package NonBlocking@2.1.2
#addin nuget:?package=NonBlocking&version=2.1.2Install as a Cake Addin
#tool nuget:?package=NonBlocking&version=2.1.2Install as a Cake Tool
Implementation of a lock-free dictionary on .Net
Included types:
=== NonBlocking.ConcurrentDictionary
Lock-free, wait-free implementation of a dictionary.
- has the same API as System.Collections.Concurrent.ConcurrentDictionary.
- No locks are taken during any operation including Get, Add, Remove, internal resizes etc...
- While multiple threads accessing NonBlocking dictionary will help each other in operations such as table resizing, there is no dependency on such behavior. If any thread get unscheduled or delayed for whatever reason, other threads will be able to make progress independently.
- NonBlocking dictionary scales linearly with the number of active threads if hardware permits.
On most operations NonBlocking dictionary is faster than Concurrent, especially in write-heavy scenarios.
Core algorithms are based on NonBlockingHashMap, written and released to the public domain by Dr. Cliff Click. A good overview could be found here: https://www.youtube.com/watch?v=HJ-719EGIts
=== Counter32
=== Counter64
Low-overhead scalable counters.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on NonBlocking:
| Package | Downloads |
|---|---|
|
Moq.AutoMock
An auto-mocking container that generates mocks using Moq |
|
|
Credfeto.DotNet.Repo.Tracking
Dotnet Repository Update tools |
|
|
Credfeto.Package
Scriptable update package tool |
|
|
FastCache.Cached
The fastest cache library written in C# for items with set expiration time. Easy to use, thread-safe and light on memory. Optimized to scale from dozens to millions of items. Features lock-free reads and writes, allocation-free reads and automatic eviction. Credit to Vladimir Sadov for his implementation of NonBlocking.ConcurrentDictionary which is used as an underlying store. |
|
|
FunFair.BuildCheck.Runner
Build check project checks. |
Showing the top 5 popular GitHub repositories that depend on NonBlocking:
| Repository | Stars |
|---|---|
|
NethermindEth/nethermind
A robust, high-performance execution client for Ethereum node operators.
|
|
|
moq/Moq.AutoMocker
An auto-mocking IoC container for Moq
|
|
|
aykutalparslan/Ferrite
Experimental Telegram Server
|
|
|
Wsm2110/Faster.Map
Faster.Map — A blazing-fast, memory-efficient HashMap library for .NET. Featuring SIMD-optimized DenseMap, lock-free CMap, and high-performance BlitzMap implementations designed for extreme speed, scalability, and low memory overhead. Ideal for real-time systems, caching engines, and high-density data workloads.
|
|
|
neon-sunset/fast-cache
The fastest cache library written in C# for items with set expiration time. Easy to use, thread-safe and light on memory.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.2 | 6,351,495 | 7/8/2023 |
| 2.1.1 | 12,587,251 | 12/27/2022 |
| 2.1.0 | 112,769 | 6/24/2022 |
| 2.0.0 | 46,415 | 3/17/2022 |
| 1.1.2 | 139,242 | 5/21/2020 |
| 1.1.1 | 14,658 | 5/14/2020 |
| 1.1.0 | 1,154 | 5/7/2020 |
| 1.0.3 | 16,353 | 2/13/2019 |
| 1.0.2 | 713,960 | 1/20/2018 |
| 1.0.0 | 2,300 | 7/20/2017 |
| 1.0.0-rc7 | 1,562 | 7/14/2017 |
| 1.0.0-rc6 | 2,436 | 5/19/2017 |
| 1.0.0-rc5 | 2,129 | 5/19/2017 |
| 1.0.0-rc4 | 2,561 | 5/10/2017 |
A few bug fixes and performance improvements.