Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.85 KB

File metadata and controls

41 lines (35 loc) · 1.85 KB
true permissions tools network safe-outputs
pull_request
types
opened
reopened
synchronize
ready_for_review
contents pull-requests
read
read
github
toolsets
repos
pull_requests
defaults
add-comment
max
2

Performance Analyzer

Purpose

Flags likely performance regressions or expensive new code paths.

Trigger

Run when a pull request changes code in hot paths, large loops, IO boundaries, caching, data processing, or query behavior.

Instructions

  1. Inspect the changed logic for operations that may scale poorly: nested loops, repeated remote calls, N+1 access patterns, large allocations, redundant parsing, or cache bypasses.
  2. Focus on performance regressions that matter at realistic load, not theoretical micro-optimizations.
  3. Explain the likely cost multiplier: more rows, more requests, more allocations, slower startup, or higher p95 latency.
  4. If a likely regression exists, use safe outputs to leave one concise comment pointing to the hotspot and the most practical improvement or validation path.
  5. If the code is performance-sensitive but the evidence is incomplete, recommend measurement or profiling rather than making a false precision claim.
  6. Avoid nitpicking low-impact style changes that do not alter runtime behavior meaningfully.
  7. Prioritize the few issues most likely to affect users or infrastructure cost.

Expected Output

  • A focused performance review note when the change likely introduces real cost or latency risk.
  • Actionable guidance that helps reviewers decide whether deeper benchmarking is required.

Customization Notes

  • Add the paths or modules your team treats as performance-critical.
  • If your project has known scale thresholds, mention them so the workflow can prioritize realistic bottlenecks.
  • Keep comment count low and focus on the most impactful regression risks.