dotnet/skills✦ 精选0°

analyzing-dotnet-performance

仓库创建 2026年2月4日最近提交 14 小时前SkillHot 收录 20 天前
▸ 精选理由

快速定位高影响的性能问题,适合性能优化审查。

这个 Skill 做什么

扫描 C#/.NET 代码并识别约50种性能反模式,给出优先级和修复建议。

扫描 C#/.NET 代码,识别约 50 种性能反模式(覆盖 async、内存、字符串、集合、LINQ、正则、序列化和 I/O 等)。适合做性能审计、优化热点路径或查找高分配场景时使用。会按严重度排序并给出可执行的修复建议,帮助你把有限精力集中在最能提升性能的点上。

▸ 展开 SKILL.md 英文原文

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.

开发编程.NET 性能反模式代码审查通用
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-diag/skills/analyzing-dotnet-performance/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-diag/skills/analyzing-dotnet-performance/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# .NET Performance Patterns

Scan C#/.NET code for performance anti-patterns and produce prioritized findings with concrete fixes. Patterns sourced from the official .NET performance blog series, distilled to customer-actionable guidance.

## 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 requirement
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有