ArrayPoolDictionary ArrayPool-based dictionaries How to use dotnet restore Run benchmark dotnet run -c Release Add dictionaries to your project Copy AnkerlDictionaryMod2.cs to your project. It will work fine at almost any circumstances. Never forget Dispose() when destroying it.