Info
Version: | 1.1.0 |
Author(s): | Tony Ferrell |
Last Update: | Thursday, September 3, 2015 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/tonyferrell/Enum.Performance.Library |
NuGet Url: | https://www.nuget.org/packages/Enum.Performance.Library |
Install
Install-Package Enum.Performance.Library
dotnet add package Enum.Performance.Library
paket add Enum.Performance.Library
Enum.Performance.Library Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
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.