dotnet-performance-patterns

Community

Boost .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> and Memory<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 struct and ref struct for performance gains and stack-based memory management.
  • JIT Devirtualization: Understand how sealed classes can improve method call performance.
  • Stack Allocation: Use stackalloc for small, localized memory allocations on the stack.
  • Use Case: Optimize a high-throughput data parsing service by replacing Substring calls with ReadOnlySpan<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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.