C#'s System.Enum class can be incredibly performant and still let you maintain readable code. Unfortunatly, performing operations like listing all enum values, converting enum's back to their string names, and parsing strings to enum values are incredibly non-performant. In low-latency/high-performance systems, this can have a huge negative impact on your performance metrics.
The ideal solution would be to treat all Enum's as their underlying type, and only do conversions offline. However this is not always feasible, and this package will help by providing some tools to trade off that processing time for a little bit of space.
Install-Package Enum.Performance.Library -Version 1.1.0
dotnet add package Enum.Performance.Library --version 1.1.0
<PackageReference Include="Enum.Performance.Library" Version="1.1.0" />
paket add Enum.Performance.Library --version 1.1.0
Add a generic EnumManager that loads enum values in a static constructor.
This package has no dependencies.
This package is not used by any popular GitHub repositories.