SuperAPI AI Directory

csharp-performance

Coding & development

View repository

Updated 10-16 07:18

About this skill

C# Performance

Use $csharp-tutor mode=performance.

Treat all user text after $csharp-performance as the code, query, project, or performance concern. Use the main csharp-tutor skill as the source of truth.

Load these csharp-tutor references when useful:

  • references/performance-review-map.md
  • references/modern-dotnet-patterns.md
  • references/aot-guidance.md
  • references/tooling-and-analyzers.md
  • references/project-inspection.md
  • references/framework-guidance.md
  • references/verification-checklist.md

Avoid unsupported performance claims. Recommend measurement, profiling, or BenchmarkDotNet when the performance tradeoff is not obvious.

Standalone Guidance

  • Core rule: Keep the answer centered on the concrete performance decision, failure mode, or contract.
  • Avoid: Giving generic C# advice without tying it to the performance concern.
  • Minimal example: var ids = users.Select(u => u.Id).ToHashSet();