analyzing-dotnet-performance

Detect performance anti-patterns in .NET/C# code with prioritized fixes.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill analyzing-dotnet-performance-sayedihashimi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: analyzing-dotnet-performance
Source: https://github.com/sayedihashimi/copilot-skill-eval/tree/main/examples/aspnet-razor-pages/plugins/dotnet-skills/dotnet-diag/skills/analyzing-dotnet-performance
Command: npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill analyzing-dotnet-performance-sayedihashimi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Scans and analyzes .NET/C# code to detect about 50 performance anti-patterns, enabling proactive optimization and allocation reduction.

Core Features & Use Cases

  • Detects async, memory, string, collection, LINQ, regex, serialization, and I/O patterns with tiered severity.
  • Provides prioritized findings and concrete fixes to improve hot-path performance.
  • Useful for code reviews, performance audits, and pre-release optimization across projects.

Quick Start

Run the analyzer against your codebase to surface actionable performance findings.

Frequently Asked Questions about analyzing-dotnet-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify .NET performance anti-patterns in C# code?▼

To identify .NET performance anti-patterns in C# code, use a static analyzer to scan your codebase for about 50 common allocation, async, and LINQ inefficiencies, producing prioritized findings with concrete fixes.

Can I detect memory allocation issues during a C# code review?▼

Yes, you can detect memory allocation issues during a C# code review by running an allocation-aware audit that surfaces memory and collection anti-patterns, providing tiered severity findings to guide optimization.

What is hot-path analysis in .NET and how does it improve runtime performance?▼

Hot-path analysis in .NET is the process of scanning critical execution paths to surface performance anti-patterns, resulting in actionable code changes that reduce allocations and improve overall runtime performance.

Does this static analysis tool detect LINQ and async performance issues?▼

Yes, this static analysis tool detects LINQ and async performance issues, scanning for roughly 50 anti-patterns across async, memory, string, collection, serialization, and I/O operations with tiered severity scoring.

What's the best way to find C# code optimizations before release?▼

The best way to find C# code optimizations before release is to run a static performance audit across your projects, which surfaces prioritized findings and concrete fixes to proactively reduce allocations and accelerate optimization.

Are there limitations to static analysis for .NET performance?▼

Static analysis for .NET performance is limited to detecting known code-level anti-patterns and cannot profile actual runtime execution metrics, meaning it should complement rather than replace dynamic performance profiling.