Skip to content

Use FrozenDictionary where appropriateΒ #47569

@JamesNK

Description

@JamesNK

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

.NET 8 adds FrozenDictionary. It's a read-only dictionary with a higher creation cost but better read performance. Good for lookup dictionaries that live a long time.

See dotnet/runtime#67209

Describe the solution you'd like

Look to see where dictionaries are used today. Consider replacing them with FrozenDictionary.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Perfarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsgood first issueGood for newcomers.help candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. team

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions