perf_advice
Identify performance-impacting constructs in Rust code—allocations, locks, unbounded channels, async blocking—ranked by impact, with concrete design fixes for your chosen objective.
Instructions
Call ONLY when the user asks about performance - it is advisory, not scored, and noisy otherwise. Returns the constructs that hurt the chosen objective (hot-path allocations, locks, unbounded channels, blocking-in-async), ranked by impact, each with locations and a concrete design fix such as a bounded ring buffer in place of an unbounded channel. Tuned for Rust; other languages give limited signal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | What to optimise for; `realtime` means latency plus determinism. Defaults to all. |