HyperEnum
A C# library that makes working with the enums more than 18 times faster without any memory allocation using the CSharp source generators. (Source only)
Install / Use
/learn @alirezanet/HyperEnumREADME
HyperEnum
A C# library that make working with Enums more than 18 times faster without any memory allocation using csharp source generator.
Performance Comparision
| Method | Mean | Error | StdDev | Gen 0 | Allocated | |----------------- |----------:|----------:|----------:|-------:|----------:| | NormalToString | 20.248 ns | 0.1086 ns | 0.1016 ns | 0.0038 | 24 B | | EnumGetName | 41.523 ns | 0.1619 ns | 0.1352 ns | 0.0038 | 24 B | | HyperEnumGetName | 2.122 ns | 0.0189 ns | 0.0177 ns | - | - |
[Benchmark]
public void NormalToString() => HumanStates.Idle.ToString(); // output = "Idle"
[Benchmark]
public void EnumGetName() => Enum.GetName(typeof(HumanStates), HumanStates.Idle);
[Benchmark]
public void HyperEnumGetName() => HumanStates.Idle.GetName(); // output = "Idle"
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
