.NET Performance & Type Design
Optimizes .NET applications by implementing high-performance type design patterns, memory management strategies, and efficient collection usage.
This skill provides comprehensive guidance for .NET developers to build highly efficient and performant applications through optimized type design. It enforces best practices such as class sealing for JIT devirtualization, using readonly structs to minimize allocations, and leveraging modern .NET features like Span<T> and FrozenCollections. Whether you are designing new APIs or refactoring existing bottlenecks, this skill ensures your C# code follows industry-standard performance patterns while maintaining clean, testable architecture.
主な機能
01Provides patterns for ValueTask and IAsyncEnumerable to optimize high-throughput async paths.
02Optimizes memory usage through readonly structs and memory-efficient value types.
03423 GitHub stars
04Optimizes collection handling by avoiding premature enumeration and utilizing Frozen collections.
05Enforces class sealing to enable JIT devirtualization and prevent inheritance overhead.
06Guides the implementation of Span<T> and Memory<T> for allocation-free buffer operations.
ユースケース
01Refactoring high-traffic microservices to reduce garbage collection pressure and latency.
02Conducting automated code reviews to identify inefficient LINQ chains and unnecessary allocations.
03Designing new library APIs that require strict memory safety and high-performance throughput.