What problem does it solve?
This skill guides Rust developers to identify and address performance issues such as excessive allocations, poor cache locality, and lack of parallelism, ensuring optimizations are justified and measured.
Core Features & Use Cases
- Design Decision Framework: Structured tables map goals (e.g., reduce allocations) to design choices and concrete implementations like with_capacity or rayon.
- Thinking Prompts: Checklist questions to ensure profiling, benchmarking, and trade‑off analysis before changes.
- Traceability: Links performance concerns to domain constraints (latency, throughput) and to concrete Rust modules (ownership, resource, concurrency).
- Tool Quick Reference: Summarizes cargo bench, criterion, perf, heaptrack, valgrind and cachegrind utilities.
Use case: When a Rust service exhibits high latency, invoke this skill to evaluate profiling data and receive actionable refactoring suggestions.
Quick Start
Ask the skill to evaluate your Rust project and provide performance optimization recommendations.