dotnet-performance-patterns
CommunityBoost .NET speed, slash allocations.
AuthorAGIBuild
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses performance bottlenecks in .NET applications by optimizing memory allocations and improving throughput, leading to faster and more efficient code.
Core Features & Use Cases
- Zero-Allocation Techniques: Leverage
Span<T>andMemory<T>for efficient memory slicing without garbage collection overhead. - Buffer Pooling: Utilize
ArrayPool<T>to reduce memory pressure from frequent array allocations. - Struct Optimization: Employ
readonly structandref structfor performance gains and stack-based memory management. - JIT Devirtualization: Understand how
sealedclasses can improve method call performance. - Stack Allocation: Use
stackallocfor small, localized memory allocations on the stack. - Use Case: Optimize a high-throughput data parsing service by replacing
Substringcalls withReadOnlySpan<char>operations, significantly reducing GC pressure and improving latency.
Quick Start
Optimize the provided C# code snippet to use Span<T> for string processing.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-performance-patterns Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#dotnet-performance-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.