Profiles and optimizes Rust applications by identifying bottlenecks and implementing high-efficiency code patterns in release builds.
The Rust Performance Optimizer skill provides a systematic workflow for enhancing the execution speed and resource efficiency of Rust projects. It guides Claude through a rigorous cycle of profiling release builds using cargo bench, analyzing execution paths for bottlenecks, and applying targeted optimizations such as reducing heap allocations, refining iterator chains, and implementing parallelism via Rayon. By enforcing a strict two-minute profiling cap and requiring verification through cargo tests and Clippy, the skill ensures that performance gains are achieved rapidly without compromising code correctness or stability.
主要功能
010 GitHub stars
02Comprehensive optimization checklists for I/O, iterators, and data structures
03Strict verification loop ensuring all tests pass after ogni optimization pass
04Batch implementation strategy for efficient, single-pass code refactoring
05Automated baseline profiling using cargo bench and release builds
06Deep analysis of function execution time and memory allocation patterns
使用场景
01Reducing the latency of high-throughput Rust web services and APIs
02Refactoring codebases to minimize unnecessary memory clones and allocations
03Optimizing resource-intensive CLI tools or data processing pipelines