Other
news

136stories

Stories

Other
Other
DVDEV Community: #csharp Maayur Dahake Nov 18

FrozenDictionary<K, V> in .NET 8+

A short look at swapping `Dictionary<TKey, TValue>` for `FrozenDictionary<TKey, TValue>` for configuration maps, lookup tables and feature flags built once at startup and read constantly. It weighs the one-off `ToFrozenDictionary()` cost against fewer allocations and faster lookups on read-only data.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message