domains / families / software-engineering / analyzing-dotnet-performance
analyzing-dotnet-performance
separate
Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I/O with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.
When to use
- Reviewing C#/.NET code for performance optimization opportunities
- Auditing hot paths for allocation-heavy or inefficient patterns
- Systematic scan of a codebase for known anti-patterns before release
- Second-opinion analysis after manual performance review
When not to use
- **Algorithmic complexity analysis** — this skill targets API usage patterns, not algorithm design
- **Code not on a hot path** with no performance requirements — avoid premature optimization
Skill page
Source
| Repository | Path |
|---|
| dotnet/skills | plugins/dotnet-diag/skills/analyzing-dotnet-performance/SKILL.md |